pub struct NewEnrollment<'a> {
pub enrollment_id: &'a str,
pub user_code: &'a str,
pub name: &'a str,
pub public_key: &'a str,
pub agent: &'a str,
pub created_at: &'a str,
pub expires_at: &'a str,
pub client_ip: &'a str,
}Expand description
An enrolment about to be stored.
Fields§
§enrollment_id: &'a strenr_…: the secret the machine polls with.
user_code: &'a strXXXX-XXXX.
name: &'a strWhat the machine asked to be called.
public_key: &'a strIts public key, base64url.
agent: &'a strIts User-Agent.
created_at: &'a strNow.
expires_at: &'a strWhen the code stops being approvable.
client_ip: &'a strThe address it came from, as the rate limiter keys it.
Trait Implementations§
Source§impl<'a> Clone for NewEnrollment<'a>
impl<'a> Clone for NewEnrollment<'a>
Auto Trait Implementations§
impl<'a> Freeze for NewEnrollment<'a>
impl<'a> RefUnwindSafe for NewEnrollment<'a>
impl<'a> Send for NewEnrollment<'a>
impl<'a> Sync for NewEnrollment<'a>
impl<'a> Unpin for NewEnrollment<'a>
impl<'a> UnsafeUnpin for NewEnrollment<'a>
impl<'a> UnwindSafe for NewEnrollment<'a>
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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