pub struct MailProviderView {Show 14 fields
pub id: Uuid,
pub name: String,
pub kind: ProviderKind,
pub active: bool,
pub host: String,
pub port: i32,
pub username: Option<String>,
pub password_set: bool,
pub encryption: SmtpEncryption,
pub from_email: String,
pub from_name: Option<String>,
pub reply_to: Option<String>,
pub created_at: DateTime<Utc>,
pub updated_at: DateTime<Utc>,
}Expand description
provider 的列表 / 详情表示。secret 永不返回——password_set 表示是否已存密码。
Fields§
§id: Uuid§name: String§kind: ProviderKind§active: bool§host: String§port: i32§username: Option<String>§password_set: booltrue 表示已配置(加密的)密码;密文永不出 wire。
encryption: SmtpEncryption§from_email: String§from_name: Option<String>§reply_to: Option<String>§created_at: DateTime<Utc>§updated_at: DateTime<Utc>Trait Implementations§
Source§impl Clone for MailProviderView
impl Clone for MailProviderView
Source§fn clone(&self) -> MailProviderView
fn clone(&self) -> MailProviderView
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl ComposeSchema for MailProviderView
impl ComposeSchema for MailProviderView
Source§impl Debug for MailProviderView
impl Debug for MailProviderView
Source§impl<'de> Deserialize<'de> for MailProviderView
impl<'de> Deserialize<'de> for MailProviderView
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 MailProviderView
Source§impl PartialEq for MailProviderView
impl PartialEq for MailProviderView
Source§fn eq(&self, other: &MailProviderView) -> bool
fn eq(&self, other: &MailProviderView) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for MailProviderView
impl Serialize for MailProviderView
impl StructuralPartialEq for MailProviderView
Auto Trait Implementations§
impl Freeze for MailProviderView
impl RefUnwindSafe for MailProviderView
impl Send for MailProviderView
impl Sync for MailProviderView
impl Unpin for MailProviderView
impl UnsafeUnpin for MailProviderView
impl UnwindSafe for MailProviderView
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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.