pub struct EmailMessageIdDomains { /* private fields */ }Implementations§
Source§impl EmailMessageIdDomains
impl EmailMessageIdDomains
pub fn from_mailbox_and_history( mailbox: &str, historical: &str, ) -> Result<Self, String>
Sourcepub fn from_env() -> Result<Option<Self>, String>
pub fn from_env() -> Result<Option<Self>, String>
The pack and the channel read the same deployment configuration. A pack without an email mailbox has no authority to accept stored email IDs.
pub fn current(&self) -> &str
pub fn mailbox(&self) -> &str
pub fn mint(&self, note_id: Uuid) -> String
Sourcepub fn verify(&self, note_id: Uuid, stored: &str) -> bool
pub fn verify(&self, note_id: Uuid, stored: &str) -> bool
Equality against the row’s own canonical UUID is intentional: a parseable ID borrowed from another row is not this row’s claim.
pub fn verifies_channel_slug(&self, slug: Option<&str>) -> bool
Trait Implementations§
Source§impl Clone for EmailMessageIdDomains
impl Clone for EmailMessageIdDomains
Source§impl Debug for EmailMessageIdDomains
impl Debug for EmailMessageIdDomains
impl Eq for EmailMessageIdDomains
Source§impl PartialEq for EmailMessageIdDomains
impl PartialEq for EmailMessageIdDomains
impl StructuralPartialEq for EmailMessageIdDomains
Auto Trait Implementations§
impl Freeze for EmailMessageIdDomains
impl RefUnwindSafe for EmailMessageIdDomains
impl Send for EmailMessageIdDomains
impl Sync for EmailMessageIdDomains
impl Unpin for EmailMessageIdDomains
impl UnsafeUnpin for EmailMessageIdDomains
impl UnwindSafe for EmailMessageIdDomains
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,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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