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