#[non_exhaustive]pub struct Oauth2ClientCredentials {
pub client_id: String,
pub client_secret: String,
pub secret_manager_stored_client_secret: String,
/* private fields */
}
Expand description
OAuth2 Client Credentials.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.client_id: String
Required. Client ID for Salesforce OAuth2 Client Credentials.
client_secret: String
Optional. Client secret for Salesforce OAuth2 Client Credentials.
Mutually exclusive with the secret_manager_stored_client_secret
field.
secret_manager_stored_client_secret: String
Optional. A reference to a Secret Manager resource name storing the
Salesforce OAuth2 client_secret. Mutually exclusive with the
client_secret
field.
Implementations§
Source§impl Oauth2ClientCredentials
impl Oauth2ClientCredentials
pub fn new() -> Self
Sourcepub fn set_client_id<T: Into<String>>(self, v: T) -> Self
pub fn set_client_id<T: Into<String>>(self, v: T) -> Self
Sets the value of client_id.
Sourcepub fn set_client_secret<T: Into<String>>(self, v: T) -> Self
pub fn set_client_secret<T: Into<String>>(self, v: T) -> Self
Sets the value of client_secret.
Sourcepub fn set_secret_manager_stored_client_secret<T: Into<String>>(
self,
v: T,
) -> Self
pub fn set_secret_manager_stored_client_secret<T: Into<String>>( self, v: T, ) -> Self
Sets the value of secret_manager_stored_client_secret.
Trait Implementations§
Source§impl Clone for Oauth2ClientCredentials
impl Clone for Oauth2ClientCredentials
Source§fn clone(&self) -> Oauth2ClientCredentials
fn clone(&self) -> Oauth2ClientCredentials
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 Debug for Oauth2ClientCredentials
impl Debug for Oauth2ClientCredentials
Source§impl Default for Oauth2ClientCredentials
impl Default for Oauth2ClientCredentials
Source§fn default() -> Oauth2ClientCredentials
fn default() -> Oauth2ClientCredentials
Returns the “default value” for a type. Read more
Source§impl Message for Oauth2ClientCredentials
impl Message for Oauth2ClientCredentials
Source§impl PartialEq for Oauth2ClientCredentials
impl PartialEq for Oauth2ClientCredentials
impl StructuralPartialEq for Oauth2ClientCredentials
Auto Trait Implementations§
impl Freeze for Oauth2ClientCredentials
impl RefUnwindSafe for Oauth2ClientCredentials
impl Send for Oauth2ClientCredentials
impl Sync for Oauth2ClientCredentials
impl Unpin for Oauth2ClientCredentials
impl UnwindSafe for Oauth2ClientCredentials
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