#[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: StrBytes
The user name.
Supported API versions: 0
mechanism: i8
The SCRAM mechanism.
Supported API versions: 0
iterations: i32
The number of iterations.
Supported API versions: 0
salt: Bytes
A random salt generated by the client.
Supported API versions: 0
salted_password: Bytes
The 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
Available on crate feature broker
only.
impl Decodable for ScramCredentialUpsertion
broker
only.Source§impl Default for ScramCredentialUpsertion
impl Default for ScramCredentialUpsertion
Source§impl Encodable for ScramCredentialUpsertion
Available on crate feature client
only.
impl Encodable for ScramCredentialUpsertion
client
only.