#[non_exhaustive]pub struct AclCreation {
pub resource_type: i8,
pub resource_name: StrBytes,
pub resource_pattern_type: i8,
pub principal: StrBytes,
pub host: StrBytes,
pub operation: i8,
pub permission_type: i8,
pub unknown_tagged_fields: BTreeMap<i32, Bytes>,
}
Expand description
Valid versions: 0-3
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.resource_type: i8
The type of the resource.
Supported API versions: 0-3
resource_name: StrBytes
The resource name for the ACL.
Supported API versions: 0-3
resource_pattern_type: i8
The pattern type for the ACL.
Supported API versions: 1-3
principal: StrBytes
The principal for the ACL.
Supported API versions: 0-3
host: StrBytes
The host for the ACL.
Supported API versions: 0-3
operation: i8
The operation type for the ACL (read, write, etc.).
Supported API versions: 0-3
permission_type: i8
The permission type for the ACL (allow, deny, etc.).
Supported API versions: 0-3
unknown_tagged_fields: BTreeMap<i32, Bytes>
Other tagged fields
Implementations§
Source§impl AclCreation
impl AclCreation
Sourcepub fn with_resource_type(self, value: i8) -> Self
pub fn with_resource_type(self, value: i8) -> Self
Sets resource_type
to the passed value.
The type of the resource.
Supported API versions: 0-3
Sourcepub fn with_resource_name(self, value: StrBytes) -> Self
pub fn with_resource_name(self, value: StrBytes) -> Self
Sets resource_name
to the passed value.
The resource name for the ACL.
Supported API versions: 0-3
Sourcepub fn with_resource_pattern_type(self, value: i8) -> Self
pub fn with_resource_pattern_type(self, value: i8) -> Self
Sets resource_pattern_type
to the passed value.
The pattern type for the ACL.
Supported API versions: 1-3
Sourcepub fn with_principal(self, value: StrBytes) -> Self
pub fn with_principal(self, value: StrBytes) -> Self
Sets principal
to the passed value.
The principal for the ACL.
Supported API versions: 0-3
Sourcepub fn with_host(self, value: StrBytes) -> Self
pub fn with_host(self, value: StrBytes) -> Self
Sets host
to the passed value.
The host for the ACL.
Supported API versions: 0-3
Sourcepub fn with_operation(self, value: i8) -> Self
pub fn with_operation(self, value: i8) -> Self
Sets operation
to the passed value.
The operation type for the ACL (read, write, etc.).
Supported API versions: 0-3
Sourcepub fn with_permission_type(self, value: i8) -> Self
pub fn with_permission_type(self, value: i8) -> Self
Sets permission_type
to the passed value.
The permission type for the ACL (allow, deny, etc.).
Supported API versions: 0-3
Sourcepub fn with_unknown_tagged_fields(self, value: BTreeMap<i32, Bytes>) -> Self
pub fn with_unknown_tagged_fields(self, value: BTreeMap<i32, Bytes>) -> Self
Sets unknown_tagged_fields to the passed value.
Sourcepub fn with_unknown_tagged_field(self, key: i32, value: Bytes) -> Self
pub fn with_unknown_tagged_field(self, key: i32, value: Bytes) -> Self
Inserts an entry into unknown_tagged_fields.
Trait Implementations§
Source§impl Clone for AclCreation
impl Clone for AclCreation
Source§fn clone(&self) -> AclCreation
fn clone(&self) -> AclCreation
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for AclCreation
impl Debug for AclCreation
Source§impl Decodable for AclCreation
Available on crate feature broker
only.
impl Decodable for AclCreation
broker
only.Source§impl Default for AclCreation
impl Default for AclCreation
Source§impl Encodable for AclCreation
Available on crate feature client
only.
impl Encodable for AclCreation
client
only.