pub struct Invite {
pub id: String,
pub principal_id: String,
pub secret_hash: String,
pub created_by: String,
pub created: UnixMillis,
pub expires: UnixMillis,
pub note: String,
pub server_level: Option<Level>,
}Expand description
An invite: a pending passkey enrolment on an existing person (Stage L,
2026-10-04). Its secret is shown once, to whoever created it; this row keeps
only the hash. Redeemed once (it is removed in the same update that stores
the passkey), and never after expires.
Fields§
§id: StringThe invite’s public id — what a listing and a revocation name.
principal_id: StringThe person whose passkey it enrols.
secret_hash: StringLowercase hex SHA-256 of the secret. Never the secret.
created_by: StringWho created it.
created: UnixMillisWhen.
expires: UnixMillisWhen it stops being redeemable.
note: StringFree text from the inviter.
server_level: Option<Level>The server-wide grant a redemption applies (the console’s operator or admin), if any. Only a server admin’s invite carries one.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Invite
impl<'de> Deserialize<'de> for Invite
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 Invite
impl StructuralPartialEq for Invite
Auto Trait Implementations§
impl Freeze for Invite
impl RefUnwindSafe for Invite
impl Send for Invite
impl Sync for Invite
impl Unpin for Invite
impl UnsafeUnpin for Invite
impl UnwindSafe for Invite
Blanket Implementations§
impl<T> Allocation for T
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<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