pub enum InviteLookupOutcome {
Valid {
kind: InviteKind,
role: Role,
expires_at: i64,
inviter: Option<String>,
fingerprint: Option<String>,
},
Expired {
at: i64,
},
Used,
Revoked,
NoMatch,
Unknown,
}Expand description
What an invite’s code is (InviteLookup). Looking never uses it up.
Variants§
Valid
It can be redeemed now: kind says how (RedeemInvite or
RedeemPortableInvite), and a create-user one makes an account
with role.
Fields
§
kind: InviteKindExpired
It expired at at, Unix seconds.
Used
Every use it had is used.
Revoked
An admin revoked it.
NoMatch
No invite has this code: counted as a wrong guess.
Unknown
An outcome this build does not know, from a newer server.
Trait Implementations§
Source§impl Clone for InviteLookupOutcome
impl Clone for InviteLookupOutcome
Source§impl Debug for InviteLookupOutcome
impl Debug for InviteLookupOutcome
Source§impl<'de> Deserialize<'de> for InviteLookupOutcome
impl<'de> Deserialize<'de> for InviteLookupOutcome
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 InviteLookupOutcome
Source§impl PartialEq for InviteLookupOutcome
impl PartialEq for InviteLookupOutcome
Source§impl Serialize for InviteLookupOutcome
impl Serialize for InviteLookupOutcome
impl StructuralPartialEq for InviteLookupOutcome
Auto Trait Implementations§
impl Forget for InviteLookupOutcome
impl Freeze for InviteLookupOutcome
impl Move for InviteLookupOutcome
impl RefUnwindSafe for InviteLookupOutcome
impl Send for InviteLookupOutcome
impl Sync for InviteLookupOutcome
impl Unpin for InviteLookupOutcome
impl UnsafeUnpin for InviteLookupOutcome
impl UnwindSafe for InviteLookupOutcome
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