pub struct TokenExchangeSession {
pub access_token: String,
pub refresh_token: Option<String>,
pub id_token: Option<String>,
pub instance_url: String,
pub issued_at: Option<String>,
pub scope: Option<String>,
pub id: Option<String>,
pub signature: Option<String>,
}Expand description
Result of a successful Token Exchange.
Fields§
§access_token: StringBearer access token for immediate Salesforce API calls.
refresh_token: Option<String>Refresh token, if the connected app + requested scopes caused one to be issued.
id_token: Option<String>OpenID Connect ID token, if openid was in the requested scopes.
instance_url: StringREST instance URL for subsequent API calls.
issued_at: Option<String>issued_at timestamp from the response (milliseconds-since-epoch as
a string per Salesforce’s wire format).
scope: Option<String>Granted scopes, space-separated.
id: Option<String>Salesforce user-identity URL (e.g.
https://login.salesforce.com/id/{org_id}/{user_id}). Distinct
from id_token (which is OIDC-specific).
signature: Option<String>Base64-encoded HMAC-SHA256 of id + issued_at keyed on the
connected-app consumer secret. Lets the caller verify the token
came from Salesforce.
Trait Implementations§
Source§impl Clone for TokenExchangeSession
impl Clone for TokenExchangeSession
Source§fn clone(&self) -> TokenExchangeSession
fn clone(&self) -> TokenExchangeSession
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 TokenExchangeSession
impl RefUnwindSafe for TokenExchangeSession
impl Send for TokenExchangeSession
impl Sync for TokenExchangeSession
impl Unpin for TokenExchangeSession
impl UnsafeUnpin for TokenExchangeSession
impl UnwindSafe for TokenExchangeSession
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