#[non_exhaustive]pub struct SalesforceProfile {
pub domain: String,
pub credentials: Option<Credentials>,
/* private fields */
}
Expand description
Salesforce profile
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.domain: String
Required. Domain endpoint for the Salesforce connection.
credentials: Option<Credentials>
Credentials for Salesforce connection.
Implementations§
Source§impl SalesforceProfile
impl SalesforceProfile
pub fn new() -> Self
Sourcepub fn set_domain<T: Into<String>>(self, v: T) -> Self
pub fn set_domain<T: Into<String>>(self, v: T) -> Self
Sets the value of domain.
Sourcepub fn set_credentials<T: Into<Option<Credentials>>>(self, v: T) -> Self
pub fn set_credentials<T: Into<Option<Credentials>>>(self, v: T) -> Self
Sets the value of credentials.
Note that all the setters affecting credentials
are mutually
exclusive.
Sourcepub fn user_credentials(&self) -> Option<&Box<UserCredentials>>
pub fn user_credentials(&self) -> Option<&Box<UserCredentials>>
The value of credentials
if it holds a UserCredentials
, None
if the field is not set or
holds a different branch.
Sourcepub fn set_user_credentials<T: Into<Box<UserCredentials>>>(self, v: T) -> Self
pub fn set_user_credentials<T: Into<Box<UserCredentials>>>(self, v: T) -> Self
Sets the value of credentials
to hold a UserCredentials
.
Note that all the setters affecting credentials
are
mutually exclusive.
Sourcepub fn oauth2_client_credentials(&self) -> Option<&Box<Oauth2ClientCredentials>>
pub fn oauth2_client_credentials(&self) -> Option<&Box<Oauth2ClientCredentials>>
The value of credentials
if it holds a Oauth2ClientCredentials
, None
if the field is not set or
holds a different branch.
Sourcepub fn set_oauth2_client_credentials<T: Into<Box<Oauth2ClientCredentials>>>(
self,
v: T,
) -> Self
pub fn set_oauth2_client_credentials<T: Into<Box<Oauth2ClientCredentials>>>( self, v: T, ) -> Self
Sets the value of credentials
to hold a Oauth2ClientCredentials
.
Note that all the setters affecting credentials
are
mutually exclusive.
Trait Implementations§
Source§impl Clone for SalesforceProfile
impl Clone for SalesforceProfile
Source§fn clone(&self) -> SalesforceProfile
fn clone(&self) -> SalesforceProfile
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 SalesforceProfile
impl Debug for SalesforceProfile
Source§impl Default for SalesforceProfile
impl Default for SalesforceProfile
Source§fn default() -> SalesforceProfile
fn default() -> SalesforceProfile
Returns the “default value” for a type. Read more
Source§impl Message for SalesforceProfile
impl Message for SalesforceProfile
Source§impl PartialEq for SalesforceProfile
impl PartialEq for SalesforceProfile
impl StructuralPartialEq for SalesforceProfile
Auto Trait Implementations§
impl Freeze for SalesforceProfile
impl RefUnwindSafe for SalesforceProfile
impl Send for SalesforceProfile
impl Sync for SalesforceProfile
impl Unpin for SalesforceProfile
impl UnwindSafe for SalesforceProfile
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