pub struct TokenSession {
pub session: Session,
pub required_headers: &'static [&'static str],
pub token_fields: &'static [&'static str],
}Expand description
The token session: the OAuth exchange.
Fields§
§session: Session§required_headers: &'static [&'static str]The header lines a Platform Verifier requires exactly once: host
and content-type, lowercased as on the wire. Other headers pass
unless FORBIDDEN_REQUEST_HEADERS names them. content-length is
absent: the HTTP client writes it and the verifier reads it.
token_fields: &'static [&'static str]The body’s form fields in serialization order. Verifiers require exactly these names in this order, each once with a nonempty value, and nothing after the last. GitHub’s list is REQ-PLAT-61’s and X’s is REQ-PLAT-63’s.
Trait Implementations§
Source§impl Clone for TokenSession
impl Clone for TokenSession
impl 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