#[non_exhaustive]pub enum UserScramCredentialAlteration {
Upsertion(UserScramCredentialUpsertion),
Deletion(UserScramCredentialDeletion),
}Expand description
A request to alter a user’s SASL/SCRAM credentials.
Java models this as an abstract base with the two concrete subclasses
UserScramCredentialUpsertion and UserScramCredentialDeletion. Rust models
the closed subclass hierarchy as an enum: the Java instanceof dispatch in
KafkaAdminClient.alterUserScramCredentials becomes a match here, and the
shared user() accessor of the abstract base becomes a method delegating to
the active variant. This is faithful because the Java hierarchy is sealed
(both subclasses live in the same package and there is no public subclassing
contract).
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Upsertion(UserScramCredentialUpsertion)
An update/insertion of a credential (UserScramCredentialUpsertion).
Deletion(UserScramCredentialDeletion)
A deletion of a credential (UserScramCredentialDeletion).
Implementations§
Trait Implementations§
Source§impl Clone for UserScramCredentialAlteration
impl Clone for UserScramCredentialAlteration
Source§fn clone(&self) -> UserScramCredentialAlteration
fn clone(&self) -> UserScramCredentialAlteration
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl From<UserScramCredentialDeletion> for UserScramCredentialAlteration
impl From<UserScramCredentialDeletion> for UserScramCredentialAlteration
Source§fn from(deletion: UserScramCredentialDeletion) -> Self
fn from(deletion: UserScramCredentialDeletion) -> Self
Converts to this type from the input type.
Source§impl From<UserScramCredentialUpsertion> for UserScramCredentialAlteration
impl From<UserScramCredentialUpsertion> for UserScramCredentialAlteration
Source§fn from(upsertion: UserScramCredentialUpsertion) -> Self
fn from(upsertion: UserScramCredentialUpsertion) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for UserScramCredentialAlteration
impl RefUnwindSafe for UserScramCredentialAlteration
impl Send for UserScramCredentialAlteration
impl Sync for UserScramCredentialAlteration
impl Unpin for UserScramCredentialAlteration
impl UnsafeUnpin for UserScramCredentialAlteration
impl UnwindSafe for UserScramCredentialAlteration
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