pub struct SmimeInfo {
pub encrypted_key_password: Option<String>,
pub expiration: Option<i64>,
pub id: Option<String>,
pub is_default: Option<bool>,
pub issuer_cn: Option<String>,
pub pem: Option<String>,
pub pkcs12: Option<Vec<u8>>,
}
Expand description
An S/MIME email config.
§Activities
This type is used in activities, which are methods you may call on this type or where this type is involved in. The list links the activity name, along with information about where it is used (one of request and response).
- settings send as smime info get users (response)
- settings send as smime info insert users (request|response)
Fields§
§encrypted_key_password: Option<String>
Encrypted key password, when key is encrypted.
expiration: Option<i64>
When the certificate expires (in milliseconds since epoch).
id: Option<String>
The immutable ID for the SmimeInfo.
is_default: Option<bool>
Whether this SmimeInfo is the default one for this user’s send-as address.
issuer_cn: Option<String>
The S/MIME certificate issuer’s common name.
pem: Option<String>
PEM formatted X509 concatenated certificate string (standard base64 encoding). Format used for returning key, which includes public key as well as certificate chain (not private key).
pkcs12: Option<Vec<u8>>
PKCS#12 format containing a single private/public key pair and certificate chain. This format is only accepted from client for creating a new SmimeInfo and is never returned, because the private key is not intended to be exported. PKCS#12 may be encrypted, in which case encryptedKeyPassword should be set appropriately.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for SmimeInfo
impl<'de> Deserialize<'de> for SmimeInfo
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>,
impl RequestValue for SmimeInfo
impl ResponseResult for SmimeInfo
Auto Trait Implementations§
impl Freeze for SmimeInfo
impl RefUnwindSafe for SmimeInfo
impl Send for SmimeInfo
impl Sync for SmimeInfo
impl Unpin for SmimeInfo
impl UnwindSafe for SmimeInfo
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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>
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>
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