#[non_exhaustive]pub struct CertificateRawData {
pub public_certificate: String,
pub private_key: String,
/* private fields */
}Expand description
An SSL certificate obtained from a certificate authority.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.public_certificate: StringPEM encoded x.509 public key certificate. This field is set once on certificate creation. Must include the header and footer. Example:
private_key: StringUnencrypted PEM encoded RSA private key. This field is set once on certificate creation and then encrypted. The key size must be 2048 bits or fewer. Must include the header and footer. Example:
@InputOnly
Implementations§
Source§impl CertificateRawData
impl CertificateRawData
pub fn new() -> Self
Sourcepub fn set_public_certificate<T: Into<String>>(self, v: T) -> Self
pub fn set_public_certificate<T: Into<String>>(self, v: T) -> Self
Sets the value of public_certificate.
Sourcepub fn set_private_key<T: Into<String>>(self, v: T) -> Self
pub fn set_private_key<T: Into<String>>(self, v: T) -> Self
Sets the value of private_key.
Trait Implementations§
Source§impl Clone for CertificateRawData
impl Clone for CertificateRawData
Source§fn clone(&self) -> CertificateRawData
fn clone(&self) -> CertificateRawData
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CertificateRawData
impl Debug for CertificateRawData
Source§impl Default for CertificateRawData
impl Default for CertificateRawData
Source§fn default() -> CertificateRawData
fn default() -> CertificateRawData
Returns the “default value” for a type. Read more
Source§impl Message for CertificateRawData
impl Message for CertificateRawData
Source§impl PartialEq for CertificateRawData
impl PartialEq for CertificateRawData
impl StructuralPartialEq for CertificateRawData
Auto Trait Implementations§
impl Freeze for CertificateRawData
impl RefUnwindSafe for CertificateRawData
impl Send for CertificateRawData
impl Sync for CertificateRawData
impl Unpin for CertificateRawData
impl UnwindSafe for CertificateRawData
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