pub struct DescribeTopicResult {
pub self_: Option<Entry>,
pub partitioning_settings: Option<PartitioningSettings>,
pub partitions: Vec<PartitionInfo>,
pub retention_period: Option<Duration>,
pub retention_storage_mb: i64,
pub supported_codecs: Option<SupportedCodecs>,
pub partition_write_speed_bytes_per_second: i64,
pub partition_write_burst_bytes: i64,
pub attributes: HashMap<String, String>,
pub consumers: Vec<Consumer>,
pub metering_mode: i32,
}Expand description
Describe topic result message that will be inside DescribeTopicResponse.operation.
Fields§
§self_: Option<Entry>Description of scheme object.
partitioning_settings: Option<PartitioningSettings>Settings for partitioning
partitions: Vec<PartitionInfo>Partitions description.
retention_period: Option<Duration>Retention settings. Currently, only one limit may be set, so other should not be set. How long data in partition should be stored.
retention_storage_mb: i64How much data in partition should be stored. Zero value means infinite limit.
supported_codecs: Option<SupportedCodecs>List of allowed codecs for writers. Writes with codec not from this list are forbidden.
partition_write_speed_bytes_per_second: i64Partition write speed in bytes per second. Zero value means default limit: 1 MB per second.
partition_write_burst_bytes: i64Burst size for write in partition, in bytes. Zero value means default limit: 1 MB.
attributes: HashMap<String, String>User and server attributes of topic. Server attributes starts from “_” and will be validated by server.
consumers: Vec<Consumer>List of consumers for this topic.
metering_mode: i32Metering settings.
Implementations§
source§impl DescribeTopicResult
impl DescribeTopicResult
sourcepub fn metering_mode(&self) -> MeteringMode
pub fn metering_mode(&self) -> MeteringMode
Returns the enum value of metering_mode, or the default if the field is set to an invalid enum value.
sourcepub fn set_metering_mode(&mut self, value: MeteringMode)
pub fn set_metering_mode(&mut self, value: MeteringMode)
Sets metering_mode to the provided enum value.
Trait Implementations§
source§impl Clone for DescribeTopicResult
impl Clone for DescribeTopicResult
source§fn clone(&self) -> DescribeTopicResult
fn clone(&self) -> DescribeTopicResult
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for DescribeTopicResult
impl Debug for DescribeTopicResult
source§impl Default for DescribeTopicResult
impl Default for DescribeTopicResult
source§impl<'de> Deserialize<'de> for DescribeTopicResult
impl<'de> Deserialize<'de> for DescribeTopicResult
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
source§impl Message for DescribeTopicResult
impl Message for DescribeTopicResult
source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
source§fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>where
B: BufMut,
Self: Sized,
fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>where
B: BufMut,
Self: Sized,
source§fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>where
B: BufMut,
Self: Sized,
fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>where
B: BufMut,
Self: Sized,
source§fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn decode<B>(buf: B) -> Result<Self, DecodeError>where
B: Buf,
Self: Default,
fn decode<B>(buf: B) -> Result<Self, DecodeError>where
B: Buf,
Self: Default,
source§fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>where
B: Buf,
Self: Default,
fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>where
B: Buf,
Self: Default,
source§fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>where
B: Buf,
Self: Sized,
fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>where
B: Buf,
Self: Sized,
self. Read moresource§fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>where
B: Buf,
Self: Sized,
fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>where
B: Buf,
Self: Sized,
self.source§impl PartialEq for DescribeTopicResult
impl PartialEq for DescribeTopicResult
source§fn eq(&self, other: &DescribeTopicResult) -> bool
fn eq(&self, other: &DescribeTopicResult) -> bool
self and other values to be equal, and is used
by ==.source§impl Serialize for DescribeTopicResult
impl Serialize for DescribeTopicResult
impl StructuralPartialEq for DescribeTopicResult
Auto Trait Implementations§
impl RefUnwindSafe for DescribeTopicResult
impl Send for DescribeTopicResult
impl Sync for DescribeTopicResult
impl Unpin for DescribeTopicResult
impl UnwindSafe for DescribeTopicResult
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request