pub struct Feature {
pub name: KafkaString,
pub min_supported_version: i16,
pub max_supported_version: i16,
pub _unknown_tagged_fields: Vec<RawTaggedField>,
}Fields§
§name: KafkaStringThe feature name.
min_supported_version: i16The minimum supported feature level.
max_supported_version: i16The maximum supported feature level.
_unknown_tagged_fields: Vec<RawTaggedField>Implementations§
Source§impl Feature
impl Feature
pub fn with_name(self, value: KafkaString) -> Self
pub fn with_min_supported_version(self, value: i16) -> Self
pub fn with_max_supported_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§
impl StructuralPartialEq for Feature
Auto Trait Implementations§
impl !Freeze for Feature
impl RefUnwindSafe for Feature
impl Send for Feature
impl Sync for Feature
impl Unpin for Feature
impl UnsafeUnpin for Feature
impl UnwindSafe for Feature
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