pub struct CompletedSession {
pub access_token: String,
pub refresh_token: Option<String>,
pub instance_url: String,
pub id: Option<String>,
pub issued_at: Option<String>,
pub signature: Option<String>,
pub scope: Option<String>,
}Expand description
Result of a successful authorization-code exchange.
Fields§
§access_token: StringBearer access token for immediate API calls.
refresh_token: Option<String>Long-lived refresh token. Present only if the connected app’s
scopes include refresh_token and the user granted it.
instance_url: StringREST instance URL reported by the token endpoint.
id: Option<String>Salesforce user-identity URL (e.g.
https://login.salesforce.com/id/{org_id}/{user_id}). Identifies
which user was authenticated.
issued_at: Option<String>Token-issuance timestamp (milliseconds since epoch as a string).
signature: Option<String>Base64-encoded HMAC-SHA256 of id + issued_at with the
connected-app consumer secret as the key — lets the caller
verify the token came from Salesforce.
scope: Option<String>Granted scopes, space-separated.
Trait Implementations§
Source§impl Clone for CompletedSession
impl Clone for CompletedSession
Source§fn clone(&self) -> CompletedSession
fn clone(&self) -> CompletedSession
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 CompletedSession
impl RefUnwindSafe for CompletedSession
impl Send for CompletedSession
impl Sync for CompletedSession
impl Unpin for CompletedSession
impl UnsafeUnpin for CompletedSession
impl UnwindSafe for CompletedSession
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