#[non_exhaustive]pub struct AclEntry {
pub principal: String,
pub permission_type: String,
pub operation: String,
pub host: String,
/* private fields */
}Expand description
Represents the access granted for a given Resource Pattern in an ACL.
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.principal: StringRequired. The principal. Specified as Google Cloud account, with the Kafka StandardAuthorizer prefix “User:”. For example: “User:test-kafka-client@test-project.iam.gserviceaccount.com”. Can be the wildcard “User:*” to refer to all users.
permission_type: StringRequired. The permission type. Accepted values are (case insensitive): ALLOW, DENY.
operation: StringRequired. The operation type. Allowed values are (case insensitive): ALL, READ, WRITE, CREATE, DELETE, ALTER, DESCRIBE, CLUSTER_ACTION, DESCRIBE_CONFIGS, ALTER_CONFIGS, and IDEMPOTENT_WRITE. See https://kafka.apache.org/documentation/#operations_resources_and_protocols for valid combinations of resource_type and operation for different Kafka API requests.
host: StringRequired. The host. Must be set to “*” for Managed Service for Apache Kafka.
Implementations§
Source§impl AclEntry
impl AclEntry
pub fn new() -> Self
Sourcepub fn set_principal<T: Into<String>>(self, v: T) -> Self
pub fn set_principal<T: Into<String>>(self, v: T) -> Self
Sets the value of principal.
Sourcepub fn set_permission_type<T: Into<String>>(self, v: T) -> Self
pub fn set_permission_type<T: Into<String>>(self, v: T) -> Self
Sets the value of permission_type.
Sourcepub fn set_operation<T: Into<String>>(self, v: T) -> Self
pub fn set_operation<T: Into<String>>(self, v: T) -> Self
Sets the value of operation.