Struct kafka_protocol::messages::alter_user_scram_credentials_request::ScramCredentialUpsertion
source · #[non_exhaustive]pub struct ScramCredentialUpsertion {
pub name: StrBytes,
pub mechanism: i8,
pub iterations: i32,
pub salt: Bytes,
pub salted_password: Bytes,
pub unknown_tagged_fields: BTreeMap<i32, Bytes>,
}Expand description
Valid versions: 0
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.name: StrBytesThe user name.
Supported API versions: 0
mechanism: i8The SCRAM mechanism.
Supported API versions: 0
iterations: i32The number of iterations.
Supported API versions: 0
salt: BytesA random salt generated by the client.
Supported API versions: 0
salted_password: BytesThe salted password.
Supported API versions: 0
unknown_tagged_fields: BTreeMap<i32, Bytes>Other tagged fields
Implementations§
source§impl ScramCredentialUpsertion
impl ScramCredentialUpsertion
sourcepub fn with_name(self, value: StrBytes) -> Self
pub fn with_name(self, value: StrBytes) -> Self
Sets name to the passed value.
The user name.
Supported API versions: 0
sourcepub fn with_mechanism(self, value: i8) -> Self
pub fn with_mechanism(self, value: i8) -> Self
Sets mechanism to the passed value.
The SCRAM mechanism.
Supported API versions: 0
sourcepub fn with_iterations(self, value: i32) -> Self
pub fn with_iterations(self, value: i32) -> Self
Sets iterations to the passed value.
The number of iterations.
Supported API versions: 0
sourcepub fn with_salt(self, value: Bytes) -> Self
pub fn with_salt(self, value: Bytes) -> Self
Sets salt to the passed value.
A random salt generated by the client.
Supported API versions: 0
sourcepub fn with_salted_password(self, value: Bytes) -> Self
pub fn with_salted_password(self, value: Bytes) -> Self
Sets salted_password to the passed value.
The salted password.
Supported API versions: 0
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 ScramCredentialUpsertion
impl Clone for ScramCredentialUpsertion
source§fn clone(&self) -> ScramCredentialUpsertion
fn clone(&self) -> ScramCredentialUpsertion
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for ScramCredentialUpsertion
impl Debug for ScramCredentialUpsertion
source§impl Decodable for ScramCredentialUpsertion
impl Decodable for ScramCredentialUpsertion
source§impl Default for ScramCredentialUpsertion
impl Default for ScramCredentialUpsertion
source§impl Encodable for ScramCredentialUpsertion
impl Encodable for ScramCredentialUpsertion
source§impl Message for ScramCredentialUpsertion
impl Message for ScramCredentialUpsertion
source§const VERSIONS: VersionRange = _
const VERSIONS: VersionRange = _
source§const DEPRECATED_VERSIONS: Option<VersionRange> = None
const DEPRECATED_VERSIONS: Option<VersionRange> = None
source§impl PartialEq for ScramCredentialUpsertion
impl PartialEq for ScramCredentialUpsertion
impl StructuralPartialEq for ScramCredentialUpsertion
Auto Trait Implementations§
impl !Freeze for ScramCredentialUpsertion
impl RefUnwindSafe for ScramCredentialUpsertion
impl Send for ScramCredentialUpsertion
impl Sync for ScramCredentialUpsertion
impl Unpin for ScramCredentialUpsertion
impl UnwindSafe for ScramCredentialUpsertion
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit)