pub struct DefaultPrincipalDataData {
pub type: KafkaString,
pub name: KafkaString,
pub token_authenticated: bool,
pub _unknown_tagged_fields: Vec<RawTaggedField>,
}Fields§
§type: KafkaStringThe principal type.
name: KafkaStringThe principal name.
token_authenticated: boolWhether the principal was authenticated by a delegation token on the forwarding broker.
_unknown_tagged_fields: Vec<RawTaggedField>Implementations§
Source§impl DefaultPrincipalDataData
impl DefaultPrincipalDataData
pub fn with_type(self, value: KafkaString) -> Self
pub fn with_name(self, value: KafkaString) -> Self
pub fn with_token_authenticated(self, value: bool) -> 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 DefaultPrincipalDataData
impl Clone for DefaultPrincipalDataData
Source§fn clone(&self) -> DefaultPrincipalDataData
fn clone(&self) -> DefaultPrincipalDataData
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 DefaultPrincipalDataData
impl Debug for DefaultPrincipalDataData
Source§impl Default for DefaultPrincipalDataData
impl Default for DefaultPrincipalDataData
Source§impl PartialEq for DefaultPrincipalDataData
impl PartialEq for DefaultPrincipalDataData
Source§fn eq(&self, other: &DefaultPrincipalDataData) -> bool
fn eq(&self, other: &DefaultPrincipalDataData) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for DefaultPrincipalDataData
Auto Trait Implementations§
impl !Freeze for DefaultPrincipalDataData
impl RefUnwindSafe for DefaultPrincipalDataData
impl Send for DefaultPrincipalDataData
impl Sync for DefaultPrincipalDataData
impl Unpin for DefaultPrincipalDataData
impl UnsafeUnpin for DefaultPrincipalDataData
impl UnwindSafe for DefaultPrincipalDataData
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