#[non_exhaustive]pub struct OffsetFetchResponseTopic {
pub name: String,
pub partitions: Vec<OffsetFetchResponsePartition>,
pub unknown_tagged_fields: Vec<RawTaggedField>,
}Expand description
OffsetFetchResponseTopic (nested in OffsetFetchResponse).
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.name: StringThe topic name.
partitions: Vec<OffsetFetchResponsePartition>The responses per partition.
unknown_tagged_fields: Vec<RawTaggedField>Tagged fields not (yet) known to this crate, kept raw.
Implementations§
Source§impl OffsetFetchResponseTopic
impl OffsetFetchResponseTopic
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 OffsetFetchResponseTopic 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 OffsetFetchResponseTopic, 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 OffsetFetchResponseTopic 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 OffsetFetchResponseTopic against an existing budget.
Trait Implementations§
Source§impl Clone for OffsetFetchResponseTopic
impl Clone for OffsetFetchResponseTopic
Source§impl Debug for OffsetFetchResponseTopic
impl Debug for OffsetFetchResponseTopic
Source§impl Default for OffsetFetchResponseTopic
impl Default for OffsetFetchResponseTopic
Source§impl PartialEq for OffsetFetchResponseTopic
impl PartialEq for OffsetFetchResponseTopic
impl StructuralPartialEq for OffsetFetchResponseTopic
Auto Trait Implementations§
impl Forget for OffsetFetchResponseTopic
impl Freeze for OffsetFetchResponseTopic
impl Move for OffsetFetchResponseTopic
impl RefUnwindSafe for OffsetFetchResponseTopic
impl Send for OffsetFetchResponseTopic
impl Sync for OffsetFetchResponseTopic
impl Unpin for OffsetFetchResponseTopic
impl UnsafeUnpin for OffsetFetchResponseTopic
impl UnwindSafe for OffsetFetchResponseTopic
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