pub struct MailProvider {
pub name: String,
pub configured: bool,
pub healthy: Option<bool>,
}Expand description
One mail provider behind a Mailer, as reported to /__health.
Name and two verdicts, never a credential: a health report that leaked an API key would be a secret published on an unauthenticated endpoint.
Fields§
§name: String§configured: bool§healthy: Option<bool>None when the adapter carries no probe, i.e. “unknown”, not
“unhealthy” — the key is then omitted from the JSON entirely.
Implementations§
Trait Implementations§
Source§impl Clone for MailProvider
impl Clone for MailProvider
Source§impl Debug for MailProvider
impl Debug for MailProvider
impl Eq for MailProvider
Source§impl PartialEq for MailProvider
impl PartialEq for MailProvider
Source§impl Serialize for MailProvider
impl Serialize for MailProvider
impl StructuralPartialEq for MailProvider
Auto Trait Implementations§
impl Freeze for MailProvider
impl RefUnwindSafe for MailProvider
impl Send for MailProvider
impl Sync for MailProvider
impl Unpin for MailProvider
impl UnsafeUnpin for MailProvider
impl UnwindSafe for MailProvider
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
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§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.