pub struct ServerTlsConfig {
pub cert: Vec<ServerTlsCert>,
pub generate: Vec<String>,
}Fields§
§cert: Vec<ServerTlsCert>Load the given certificate and keys from disk.
generate: Vec<String>Or generate a new certificate and key with the given hostnames. This won’t be valid unless the client uses the fingerprint or disables verification.
Trait Implementations§
Source§impl Args for ServerTlsConfig
impl Args for ServerTlsConfig
Source§fn augment_args<'b>(__clap_app: Command) -> Command
fn augment_args<'b>(__clap_app: Command) -> Command
Source§fn augment_args_for_update<'b>(__clap_app: Command) -> Command
fn augment_args_for_update<'b>(__clap_app: Command) -> Command
Append to
Command so it can instantiate self via
FromArgMatches::update_from_arg_matches_mut Read moreSource§impl Clone for ServerTlsConfig
impl Clone for ServerTlsConfig
Source§fn clone(&self) -> ServerTlsConfig
fn clone(&self) -> ServerTlsConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ServerTlsConfig
impl Debug for ServerTlsConfig
Source§impl Default for ServerTlsConfig
impl Default for ServerTlsConfig
Source§fn default() -> ServerTlsConfig
fn default() -> ServerTlsConfig
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ServerTlsConfig
impl<'de> Deserialize<'de> for ServerTlsConfig
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 FromArgMatches for ServerTlsConfig
impl FromArgMatches for ServerTlsConfig
Source§fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
Source§fn from_arg_matches_mut(
__clap_arg_matches: &mut ArgMatches,
) -> Result<Self, Error>
fn from_arg_matches_mut( __clap_arg_matches: &mut ArgMatches, ) -> Result<Self, Error>
Source§fn update_from_arg_matches(
&mut self,
__clap_arg_matches: &ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches( &mut self, __clap_arg_matches: &ArgMatches, ) -> Result<(), Error>
Assign values from
ArgMatches to self.Source§fn update_from_arg_matches_mut(
&mut self,
__clap_arg_matches: &mut ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches_mut( &mut self, __clap_arg_matches: &mut ArgMatches, ) -> Result<(), Error>
Assign values from
ArgMatches to self.Auto Trait Implementations§
impl Freeze for ServerTlsConfig
impl RefUnwindSafe for ServerTlsConfig
impl Send for ServerTlsConfig
impl Sync for ServerTlsConfig
impl Unpin for ServerTlsConfig
impl UnwindSafe for ServerTlsConfig
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