pub struct SupportedFeatureKey {
pub name: KafkaString,
pub min_version: i16,
pub max_version: i16,
pub _unknown_tagged_fields: Vec<RawTaggedField>,
}Fields§
§name: KafkaStringThe 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>Implementations§
Source§impl SupportedFeatureKey
impl SupportedFeatureKey
pub fn with_name(self, value: KafkaString) -> Self
pub fn with_min_version(self, value: i16) -> Self
pub fn with_max_version(self, value: i16) -> Self
pub fn read(buf: &mut Bytes, _version: i16) -> Result<Self>
pub fn write(&self, buf: &mut BytesMut, _version: i16) -> Result<()>
pub fn encoded_len(&self, _version: i16) -> Result<usize>
Trait Implementations§
Source§impl Clone for SupportedFeatureKey
impl Clone for SupportedFeatureKey
Source§fn clone(&self) -> SupportedFeatureKey
fn clone(&self) -> SupportedFeatureKey
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§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
Source§fn eq(&self, other: &SupportedFeatureKey) -> bool
fn eq(&self, other: &SupportedFeatureKey) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for SupportedFeatureKey
Auto Trait Implementations§
impl !Freeze 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