#[non_exhaustive]pub struct UserCredentials {
pub username: String,
pub password: String,
pub security_token: String,
pub secret_manager_stored_password: String,
pub secret_manager_stored_security_token: String,
/* private fields */
}
Expand description
Username-password credentials.
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.username: String
Required. Username for the Salesforce connection.
password: String
Optional. Password for the Salesforce connection.
Mutually exclusive with the secret_manager_stored_password
field.
security_token: String
Optional. Security token for the Salesforce connection.
Mutually exclusive with the secret_manager_stored_security_token
field.
secret_manager_stored_password: String
Optional. A reference to a Secret Manager resource name storing the
Salesforce connection’s password. Mutually exclusive with the password
field.
secret_manager_stored_security_token: String
Optional. A reference to a Secret Manager resource name storing the
Salesforce connection’s security token. Mutually exclusive with the
security_token
field.
Implementations§
Source§impl UserCredentials
impl UserCredentials
pub fn new() -> Self
Sourcepub fn set_username<T: Into<String>>(self, v: T) -> Self
pub fn set_username<T: Into<String>>(self, v: T) -> Self
Sets the value of username.
Sourcepub fn set_password<T: Into<String>>(self, v: T) -> Self
pub fn set_password<T: Into<String>>(self, v: T) -> Self
Sets the value of password.
Sourcepub fn set_security_token<T: Into<String>>(self, v: T) -> Self
pub fn set_security_token<T: Into<String>>(self, v: T) -> Self
Sets the value of security_token.
Sourcepub fn set_secret_manager_stored_password<T: Into<String>>(self, v: T) -> Self
pub fn set_secret_manager_stored_password<T: Into<String>>(self, v: T) -> Self
Sets the value of secret_manager_stored_password.
Sourcepub fn set_secret_manager_stored_security_token<T: Into<String>>(
self,
v: T,
) -> Self
pub fn set_secret_manager_stored_security_token<T: Into<String>>( self, v: T, ) -> Self
Sets the value of secret_manager_stored_security_token.
Trait Implementations§
Source§impl Clone for UserCredentials
impl Clone for UserCredentials
Source§fn clone(&self) -> UserCredentials
fn clone(&self) -> UserCredentials
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more