pub struct SessionCredential {
pub session_token: Option<String>,
pub session_id: String,
pub session: String,
pub address: String,
pub epoch: i64,
pub expires_at: String,
pub expires_in_seconds: i64,
}Expand description
A session credential as the caller receives it. session_token is the
secret and appears exactly once, on registration.
Fields§
§session_token: Option<String>The credential. Store it in a private file (0600) and send it as the bearer token from now on; it is not shown again. Absent on a renewal, which extends the credential you already hold.
session_id: String§session: StringThe label this credential authenticates as.
address: StringWhat a teammate puts in to to reach exactly this window.
epoch: i64Connection epoch. Send it as X-Crew-Epoch to be fenced off cleanly
if another process resumes this window after you.
expires_at: String§expires_in_seconds: i64Trait Implementations§
Source§impl Debug for SessionCredential
impl Debug for SessionCredential
Source§impl JsonSchema for SessionCredential
impl JsonSchema for SessionCredential
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreAuto Trait Implementations§
impl Freeze for SessionCredential
impl RefUnwindSafe for SessionCredential
impl Send for SessionCredential
impl Sync for SessionCredential
impl Unpin for SessionCredential
impl UnsafeUnpin for SessionCredential
impl UnwindSafe for SessionCredential
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
impl<A, B, T> HttpServerConnExec<A, B> for Twhere
B: Body,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more