// Encode Replica Assignment map into Fluvio format
Encode Replica Assignment map into Fluvio format
Encode Replica Assignment map into Fluvio format
pub fn sc_encode(&self) -> Vec<FlvTopicPartitionMap> {
            let mut partition_map: Vec<FlvTopicPartitionMap> = vec![];
            for partition in &self.partitions {
                partition_map.push(FlvTopicPartitionMap {
                    id: partition.id,
                    replicas: partition.replicas.clone(),
                })
            }
            partition_map
        }
pub fn sc_encode ( & self ) -> Vec < FlvTopicPartitionMap > { let mut partition_map : Vec < FlvTopicPartitionMap > = vec ! [ ] ; for partition in & self . partitions { partition_map . push ( FlvTopicPartitionMap { id : partition . id , replicas : partition . replicas . clone ( ) , } ) } partition_map }
Encode Replica Assignment map into Fluvio format
Encode Replica Assignment map into Fluvio format
&self