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