#[non_exhaustive]pub enum AuthMailFault {
Unset {
feature: &'static str,
},
BaseUrl(String),
MissingMail,
}Expand description
Why a panel’s auth mail cannot be sent:
DeclarationErrorKind::AuthMail.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Unset
A feature that mails links or codes, named as its Auth method, on an Auth without
Auth::mail.
Install a sender with Auth::mail(AuthMail::new(..)).
BaseUrl(String)
The base URL links start with is not an absolute http or https URL.
Pass the scheme and host, such as https://admin.example.com.
MissingMail
The router registers no Mailer to send the mail through.
Add one with .with(Mailer::new(..)) before .panel(..).
Trait Implementations§
Source§impl Clone for AuthMailFault
impl Clone for AuthMailFault
Source§impl Debug for AuthMailFault
impl Debug for AuthMailFault
Source§impl Display for AuthMailFault
impl Display for AuthMailFault
impl Eq for AuthMailFault
Source§impl PartialEq for AuthMailFault
impl PartialEq for AuthMailFault
impl StructuralPartialEq for AuthMailFault
Auto Trait Implementations§
impl Forget for AuthMailFault
impl Freeze for AuthMailFault
impl Move for AuthMailFault
impl RefUnwindSafe for AuthMailFault
impl Send for AuthMailFault
impl Sync for AuthMailFault
impl Unpin for AuthMailFault
impl UnsafeUnpin for AuthMailFault
impl UnwindSafe for AuthMailFault
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.