pub struct TokenSession {
pub session: Session,
pub secret_field: Option<&'static str>,
pub required_headers: &'static [&'static str],
}Expand description
The token session: the OAuth exchange.
Fields§
§session: Session§secret_field: Option<&'static str>The body field committed rather than revealed, ordered last so the
committed run is a suffix (REQ-COMMON-22). None for a public client,
whose request hides nothing and is revealed whole.
required_headers: &'static [&'static str]The header lines a Platform Verifier requires, each exactly once with
its value: host and content-type, lowercased as the wire spells
them. Every other header is the runtime’s own, save the names
FORBIDDEN_REQUEST_HEADERS lists. content-length is absent
because its value is the body’s own count: the HTTP client appends
it and the verifier reads it rather than compares it.
Trait Implementations§
Source§impl Clone for TokenSession
impl Clone for TokenSession
Source§fn clone(&self) -> TokenSession
fn clone(&self) -> TokenSession
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 moreimpl Copy for TokenSession
Source§impl Debug for TokenSession
impl Debug for TokenSession
impl Eq for TokenSession
Source§impl PartialEq for TokenSession
impl PartialEq for TokenSession
impl StructuralPartialEq for TokenSession
Auto Trait Implementations§
impl Freeze for TokenSession
impl RefUnwindSafe for TokenSession
impl Send for TokenSession
impl Sync for TokenSession
impl Unpin for TokenSession
impl UnsafeUnpin for TokenSession
impl UnwindSafe for TokenSession
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