pub enum InviteLink {
Issued(String),
Reissued(String),
ReissuedEmailFailed(String),
}Expand description
A freshly minted accept link and how it was delivered.
The secret behind a link is hashed at rest, so a link exists only in the response that mints it. The delivery outcome decides what the page tells the commissioner.
Variants§
Issued(String)
Handed back as the invite was created. The email carries this same link, so showing it retires nothing.
Reissued(String)
Minted on demand for an invite that already existed. The stored secret could not be read back, so this necessarily replaced whatever link went out before and sent the new link by email.
ReissuedEmailFailed(String)
Minted on demand, but email delivery failed. The commissioner can send this replacement link by hand.
Implementations§
Source§impl InviteLink
impl InviteLink
pub fn url(&self) -> &str
Sourcepub fn retires_previous(&self) -> bool
pub fn retires_previous(&self) -> bool
True when showing this link stopped an earlier one from working.
pub fn email_failed(&self) -> bool
Trait Implementations§
Source§impl Clone for InviteLink
impl Clone for InviteLink
Source§impl Debug for InviteLink
impl Debug for InviteLink
Source§impl<'de> Deserialize<'de> for InviteLink
impl<'de> Deserialize<'de> for InviteLink
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
Auto Trait Implementations§
impl Freeze for InviteLink
impl RefUnwindSafe for InviteLink
impl Send for InviteLink
impl Sync for InviteLink
impl Unpin for InviteLink
impl UnsafeUnpin for InviteLink
impl UnwindSafe for InviteLink
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
impl<A, B, T> HttpServerConnExec<A, B> for Twhere
B: Body,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> 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