pub struct ComponentData {
pub entity_type: KafkaString,
pub match_type: i8,
pub match: Option<KafkaString>,
pub _unknown_tagged_fields: Vec<RawTaggedField>,
}Fields§
§entity_type: KafkaStringThe entity type that the filter component applies to.
match_type: i8How to match the entity {0 = exact name, 1 = default name, 2 = any specified name}.
match: Option<KafkaString>The string to match against, or null if unused for the match type.
_unknown_tagged_fields: Vec<RawTaggedField>Implementations§
Source§impl ComponentData
impl ComponentData
pub fn with_entity_type(self, value: KafkaString) -> Self
pub fn with_match_type(self, value: i8) -> Self
pub fn with_match(self, value: Option<KafkaString>) -> 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 ComponentData
impl Clone for ComponentData
Source§fn clone(&self) -> ComponentData
fn clone(&self) -> ComponentData
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 ComponentData
impl Debug for ComponentData
Source§impl Default for ComponentData
impl Default for ComponentData
Source§impl PartialEq for ComponentData
impl PartialEq for ComponentData
Source§fn eq(&self, other: &ComponentData) -> bool
fn eq(&self, other: &ComponentData) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ComponentData
Auto Trait Implementations§
impl !Freeze for ComponentData
impl RefUnwindSafe for ComponentData
impl Send for ComponentData
impl Sync for ComponentData
impl Unpin for ComponentData
impl UnsafeUnpin for ComponentData
impl UnwindSafe for ComponentData
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