#[non_exhaustive]pub struct MetadataRequestTopic {
pub topic_id: [u8; 16],
pub name: Option<String>,
pub unknown_tagged_fields: Vec<RawTaggedField>,
}Expand description
MetadataRequestTopic (nested in MetadataRequest).
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.topic_id: [u8; 16]The topic id.
name: Option<String>The topic name.
unknown_tagged_fields: Vec<RawTaggedField>Tagged fields not (yet) known to this crate, kept raw.
Implementations§
Source§impl MetadataRequestTopic
impl MetadataRequestTopic
Sourcepub fn encode(
&self,
buf: &mut impl BufMut,
version: i16,
) -> Result<(), EncodeError>
pub fn encode( &self, buf: &mut impl BufMut, version: i16, ) -> Result<(), EncodeError>
Encode this MetadataRequestTopic at version.
Sourcepub fn decode(buf: &mut impl Buf, version: i16) -> Result<Self, DecodeError>
pub fn decode(buf: &mut impl Buf, version: i16) -> Result<Self, DecodeError>
Decode one MetadataRequestTopic, bounding allocation by the default
Limits derived from buf’s remaining length.
Sourcepub fn decode_with_limits(
buf: &mut impl Buf,
version: i16,
limits: Limits,
) -> Result<Self, DecodeError>
pub fn decode_with_limits( buf: &mut impl Buf, version: i16, limits: Limits, ) -> Result<Self, DecodeError>
Decode one MetadataRequestTopic under limits.
Sourcepub fn decode_with_budget(
buf: &mut impl Buf,
version: i16,
budget: &mut Budget,
) -> Result<Self, DecodeError>
pub fn decode_with_budget( buf: &mut impl Buf, version: i16, budget: &mut Budget, ) -> Result<Self, DecodeError>
Decode one MetadataRequestTopic against an existing budget.
Trait Implementations§
Source§impl Clone for MetadataRequestTopic
impl Clone for MetadataRequestTopic
Source§impl Debug for MetadataRequestTopic
impl Debug for MetadataRequestTopic
Source§impl Default for MetadataRequestTopic
impl Default for MetadataRequestTopic
Source§impl PartialEq for MetadataRequestTopic
impl PartialEq for MetadataRequestTopic
impl StructuralPartialEq for MetadataRequestTopic
Auto Trait Implementations§
impl Forget for MetadataRequestTopic
impl Freeze for MetadataRequestTopic
impl Move for MetadataRequestTopic
impl RefUnwindSafe for MetadataRequestTopic
impl Send for MetadataRequestTopic
impl Sync for MetadataRequestTopic
impl Unpin for MetadataRequestTopic
impl UnsafeUnpin for MetadataRequestTopic
impl UnwindSafe for MetadataRequestTopic
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
Mutably borrows from an owned value. Read more