#[non_exhaustive]pub struct SupportedFeatureKey {
pub name: String,
pub min_version: i16,
pub max_version: i16,
pub unknown_tagged_fields: Vec<RawTaggedField>,
}Expand description
SupportedFeatureKey (nested in ApiVersionsResponse).
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 name of the feature.
min_version: i16The minimum supported version for the feature.
max_version: i16The maximum supported version for the feature.
unknown_tagged_fields: Vec<RawTaggedField>Tagged fields not (yet) known to this crate, kept raw.
Implementations§
Source§impl SupportedFeatureKey
impl SupportedFeatureKey
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 SupportedFeatureKey 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 SupportedFeatureKey, 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 SupportedFeatureKey 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 SupportedFeatureKey against an existing budget.
Trait Implementations§
Source§impl Clone for SupportedFeatureKey
impl Clone for SupportedFeatureKey
Source§impl Debug for SupportedFeatureKey
impl Debug for SupportedFeatureKey
Source§impl Default for SupportedFeatureKey
impl Default for SupportedFeatureKey
Source§impl PartialEq for SupportedFeatureKey
impl PartialEq for SupportedFeatureKey
impl StructuralPartialEq for SupportedFeatureKey
Auto Trait Implementations§
impl Forget for SupportedFeatureKey
impl Freeze for SupportedFeatureKey
impl Move for SupportedFeatureKey
impl RefUnwindSafe for SupportedFeatureKey
impl Send for SupportedFeatureKey
impl Sync for SupportedFeatureKey
impl Unpin for SupportedFeatureKey
impl UnsafeUnpin for SupportedFeatureKey
impl UnwindSafe for SupportedFeatureKey
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