pub struct OAuthCredentials {
pub client_id: String,
pub client_secret: String,
pub refresh_token: Option<String>,
pub username: Option<String>,
pub password: Option<String>,
}Expand description
OAuth 2.0 credentials for Salesforce
Fields§
§client_id: StringOAuth client ID (Consumer Key)
client_secret: StringOAuth client secret (Consumer Secret)
refresh_token: Option<String>Refresh token for obtaining new access tokens
username: Option<String>Username for password flow
password: Option<String>Password + security token for password flow
Trait Implementations§
Source§impl Clone for OAuthCredentials
impl Clone for OAuthCredentials
Source§fn clone(&self) -> OAuthCredentials
fn clone(&self) -> OAuthCredentials
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 moreAuto Trait Implementations§
impl Freeze for OAuthCredentials
impl RefUnwindSafe for OAuthCredentials
impl Send for OAuthCredentials
impl Sync for OAuthCredentials
impl Unpin for OAuthCredentials
impl UnwindSafe for OAuthCredentials
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