pub enum ServerCerts {
Directory(String),
Environment(String),
Direct(String),
RootCertificates,
}Expand description
Expresses where Certificates for TLS are read from.
Variants§
Directory(String)
Server Certificates are read from files in the specified folder.
Environment(String)
Server Certificates are read from the specified environment variable.
Direct(String)
The Server Certificate is given directly.
RootCertificates
Defines that the server roots from https://mkcert.org/ should be added to the trust store for TLS.
Trait Implementations§
Source§impl Clone for ServerCerts
impl Clone for ServerCerts
Source§fn clone(&self) -> ServerCerts
fn clone(&self) -> ServerCerts
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 ServerCerts
impl Debug for ServerCerts
Source§impl<'de> Deserialize<'de> for ServerCerts
impl<'de> Deserialize<'de> for ServerCerts
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 ServerCerts
impl PartialEq for ServerCerts
Source§impl Serialize for ServerCerts
impl Serialize for ServerCerts
impl Eq for ServerCerts
impl StructuralPartialEq for ServerCerts
Auto Trait Implementations§
impl Freeze for ServerCerts
impl RefUnwindSafe for ServerCerts
impl Send for ServerCerts
impl Sync for ServerCerts
impl Unpin for ServerCerts
impl UnwindSafe for ServerCerts
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