pub struct Enrolment {
pub start: String,
pub finish: String,
pub status: String,
}Expand description
Where a passkey is ENROLLED, as three rooted paths.
Separate from the login ceremony because they are separate acts with separate authority: logging in proves you already hold a key, enrolling mints one, and the second is gated by a break-glass admin token or a single-use invite. The page’s panel is collapsed and only ever appears when a server hands over all three.
Fields§
§start: StringGET, with ?user= and optionally ?invite=, plus an
Authorization: Bearer <admin token> when there is no invite.
finish: StringPOST — the attestation.
status: StringGET — reports bootstrap_spent. ★ Once the first admin key exists the
break-glass token is spent, so the panel that names it is a lie to
everyone who reads it, and the page takes the panel away on this signal.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Enrolment
impl<'de> Deserialize<'de> for Enrolment
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for Enrolment
impl StructuralPartialEq for Enrolment
Auto Trait Implementations§
impl Freeze for Enrolment
impl RefUnwindSafe for Enrolment
impl Send for Enrolment
impl Sync for Enrolment
impl Unpin for Enrolment
impl UnsafeUnpin for Enrolment
impl UnwindSafe for Enrolment
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