#[non_exhaustive]pub struct ImportCertificateInput {
pub usage: Option<CertificateUsageType>,
pub certificate: Option<String>,
pub certificate_chain: Option<String>,
pub private_key: Option<String>,
pub active_date: Option<DateTime>,
pub inactive_date: Option<DateTime>,
pub description: Option<String>,
pub tags: Option<Vec<Tag>>,
}
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.usage: Option<CertificateUsageType>
Specifies how this certificate is used. It can be used in the following ways:
-
SIGNING
: For signing AS2 messages -
ENCRYPTION
: For encrypting AS2 messages -
TLS
: For securing AS2 communications sent over HTTPS
certificate: Option<String>
-
For the CLI, provide a file path for a certificate in URI format. For example,
--certificate file://encryption-cert.pem
. Alternatively, you can provide the raw content. -
For the SDK, specify the raw content of a certificate file. For example,
--certificate "`cat encryption-cert.pem`"
.
certificate_chain: Option<String>
An optional list of certificates that make up the chain for the certificate that's being imported.
private_key: Option<String>
-
For the CLI, provide a file path for a private key in URI format.For example,
--private-key file://encryption-key.pem
. Alternatively, you can provide the raw content of the private key file. -
For the SDK, specify the raw content of a private key file. For example,
--private-key "`cat encryption-key.pem`"
active_date: Option<DateTime>
An optional date that specifies when the certificate becomes active.
inactive_date: Option<DateTime>
An optional date that specifies when the certificate becomes inactive.
description: Option<String>
A short description that helps identify the certificate.
Key-value pairs that can be used to group and search for certificates.
Implementations§
source§impl ImportCertificateInput
impl ImportCertificateInput
sourcepub fn usage(&self) -> Option<&CertificateUsageType>
pub fn usage(&self) -> Option<&CertificateUsageType>
Specifies how this certificate is used. It can be used in the following ways:
-
SIGNING
: For signing AS2 messages -
ENCRYPTION
: For encrypting AS2 messages -
TLS
: For securing AS2 communications sent over HTTPS
sourcepub fn certificate(&self) -> Option<&str>
pub fn certificate(&self) -> Option<&str>
-
For the CLI, provide a file path for a certificate in URI format. For example,
--certificate file://encryption-cert.pem
. Alternatively, you can provide the raw content. -
For the SDK, specify the raw content of a certificate file. For example,
--certificate "`cat encryption-cert.pem`"
.
sourcepub fn certificate_chain(&self) -> Option<&str>
pub fn certificate_chain(&self) -> Option<&str>
An optional list of certificates that make up the chain for the certificate that's being imported.
sourcepub fn private_key(&self) -> Option<&str>
pub fn private_key(&self) -> Option<&str>
-
For the CLI, provide a file path for a private key in URI format.For example,
--private-key file://encryption-key.pem
. Alternatively, you can provide the raw content of the private key file. -
For the SDK, specify the raw content of a private key file. For example,
--private-key "`cat encryption-key.pem`"
sourcepub fn active_date(&self) -> Option<&DateTime>
pub fn active_date(&self) -> Option<&DateTime>
An optional date that specifies when the certificate becomes active.
sourcepub fn inactive_date(&self) -> Option<&DateTime>
pub fn inactive_date(&self) -> Option<&DateTime>
An optional date that specifies when the certificate becomes inactive.
sourcepub fn description(&self) -> Option<&str>
pub fn description(&self) -> Option<&str>
A short description that helps identify the certificate.
Key-value pairs that can be used to group and search for certificates.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .tags.is_none()
.
source§impl ImportCertificateInput
impl ImportCertificateInput
sourcepub fn builder() -> ImportCertificateInputBuilder
pub fn builder() -> ImportCertificateInputBuilder
Creates a new builder-style object to manufacture ImportCertificateInput
.
Trait Implementations§
source§impl Clone for ImportCertificateInput
impl Clone for ImportCertificateInput
source§fn clone(&self) -> ImportCertificateInput
fn clone(&self) -> ImportCertificateInput
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ImportCertificateInput
impl Debug for ImportCertificateInput
source§impl PartialEq for ImportCertificateInput
impl PartialEq for ImportCertificateInput
source§fn eq(&self, other: &ImportCertificateInput) -> bool
fn eq(&self, other: &ImportCertificateInput) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for ImportCertificateInput
Auto Trait Implementations§
impl Freeze for ImportCertificateInput
impl RefUnwindSafe for ImportCertificateInput
impl Send for ImportCertificateInput
impl Sync for ImportCertificateInput
impl Unpin for ImportCertificateInput
impl UnwindSafe for ImportCertificateInput
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> 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