pub struct CertificateConfig {
pub issuer: Option<String>,
pub subject: Option<String>,
pub alt_names: Option<Vec<String>>,
pub key_type: Option<String>,
pub key_param: Option<Value>,
pub key_path: Option<String>,
pub cert_path: Option<String>,
pub chain_path: Option<String>,
}
Fields§
§issuer: Option<String>
Certificate issuance strategy
subject: Option<String>
Certificate subject common name, typically a DNS name
alt_names: Option<Vec<String>>
Subject alternate names to include in the certificate (e.g. DNS:example.com)
key_type: Option<String>
Type of key to generate
key_param: Option<Value>
Key parameters. Currently must be an instance of RsaKeyParam, but other types may be supported in the future.
key_path: Option<String>
Path to expose the key in the application filesystem
cert_path: Option<String>
Path to expose the certificate in the application filesystem
chain_path: Option<String>
Path to expose the complete certificate chain in the application filesystem
Implementations§
Source§impl CertificateConfig
impl CertificateConfig
pub fn new() -> CertificateConfig
Trait Implementations§
Source§impl Clone for CertificateConfig
impl Clone for CertificateConfig
Source§fn clone(&self) -> CertificateConfig
fn clone(&self) -> CertificateConfig
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 CertificateConfig
impl Debug for CertificateConfig
Source§impl<'de> Deserialize<'de> for CertificateConfig
impl<'de> Deserialize<'de> for CertificateConfig
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
Source§impl PartialEq for CertificateConfig
impl PartialEq for CertificateConfig
Source§impl Serialize for CertificateConfig
impl Serialize for CertificateConfig
impl StructuralPartialEq for CertificateConfig
Auto Trait Implementations§
impl Freeze for CertificateConfig
impl RefUnwindSafe for CertificateConfig
impl Send for CertificateConfig
impl Sync for CertificateConfig
impl Unpin for CertificateConfig
impl UnwindSafe for CertificateConfig
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