pub struct CertificateConf {
pub domains: Option<String>,
pub tls_cert: Option<String>,
pub tls_key: Option<String>,
pub is_default: Option<bool>,
pub is_ca: Option<bool>,
pub acme: Option<String>,
pub dns_challenge: Option<bool>,
pub buffer_days: Option<u16>,
pub remark: Option<String>,
}Expand description
Configuration struct for TLS/SSL certificates
Fields§
§domains: Option<String>Domain names this certificate is valid for (comma separated)
tls_cert: Option<String>TLS certificate in PEM format or base64 encoded
tls_key: Option<String>Private key in PEM format or base64 encoded
is_default: Option<bool>Whether this is the default certificate for the server
is_ca: Option<bool>Whether this certificate is a Certificate Authority (CA)
acme: Option<String>ACME configuration for automated certificate management
dns_challenge: Option<bool>Whether to use DNS challenge for ACME certificate management
buffer_days: Option<u16>Buffer days for certificate renewal
remark: Option<String>Optional description/notes about this certificate
Implementations§
Trait Implementations§
Source§impl Clone for CertificateConf
impl Clone for CertificateConf
Source§fn clone(&self) -> CertificateConf
fn clone(&self) -> CertificateConf
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 CertificateConf
impl Debug for CertificateConf
Source§impl Default for CertificateConf
impl Default for CertificateConf
Source§fn default() -> CertificateConf
fn default() -> CertificateConf
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for CertificateConf
impl<'de> Deserialize<'de> for CertificateConf
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 Hash for CertificateConf
impl Hash for CertificateConf
Auto Trait Implementations§
impl Freeze for CertificateConf
impl RefUnwindSafe for CertificateConf
impl Send for CertificateConf
impl Sync for CertificateConf
impl Unpin for CertificateConf
impl UnwindSafe for CertificateConf
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,
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> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request