pub struct AclCreation {
pub resource_type: i8,
pub resource_name: KafkaString,
pub resource_pattern_type: i8,
pub principal: KafkaString,
pub host: KafkaString,
pub operation: i8,
pub permission_type: i8,
pub _unknown_tagged_fields: Vec<RawTaggedField>,
}Fields§
§resource_type: i8The type of the resource.
resource_name: KafkaStringThe resource name for the ACL.
resource_pattern_type: i8The pattern type for the ACL.
principal: KafkaStringThe principal for the ACL.
host: KafkaStringThe host for the ACL.
operation: i8The operation type for the ACL (read, write, etc.).
permission_type: i8The permission type for the ACL (allow, deny, etc.).
_unknown_tagged_fields: Vec<RawTaggedField>Implementations§
Source§impl AclCreation
impl AclCreation
pub fn with_resource_type(self, value: i8) -> Self
pub fn with_resource_name(self, value: KafkaString) -> Self
pub fn with_resource_pattern_type(self, value: i8) -> Self
pub fn with_principal(self, value: KafkaString) -> Self
pub fn with_host(self, value: KafkaString) -> Self
pub fn with_operation(self, value: i8) -> Self
pub fn with_permission_type(self, value: i8) -> 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 AclCreation
impl Clone for AclCreation
Source§fn clone(&self) -> AclCreation
fn clone(&self) -> AclCreation
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 AclCreation
impl Debug for AclCreation
Source§impl Default for AclCreation
impl Default for AclCreation
Source§impl PartialEq for AclCreation
impl PartialEq for AclCreation
Source§fn eq(&self, other: &AclCreation) -> bool
fn eq(&self, other: &AclCreation) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for AclCreation
Auto Trait Implementations§
impl !Freeze for AclCreation
impl RefUnwindSafe for AclCreation
impl Send for AclCreation
impl Sync for AclCreation
impl Unpin for AclCreation
impl UnsafeUnpin for AclCreation
impl UnwindSafe for AclCreation
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