pub struct BackendClientOptions {
pub domain: Option<String>,
/* private fields */
}Fields§
§domain: Option<String>If set, use this domain name to validate the server-provided certificate against, rather than the IP of the backend.
Implementations§
Source§impl BackendClientOptions
impl BackendClientOptions
Sourcepub fn tls_connector(&self) -> Result<Option<TlsConnector>, TlsConfigError>
pub fn tls_connector(&self) -> Result<Option<TlsConnector>, TlsConfigError>
Creates a TlsConnector for the BackendClientOptions.
Returns None if insecure HTTP connections should be used.
Trait Implementations§
Source§impl Args for BackendClientOptions
impl Args for BackendClientOptions
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 BackendClientOptions
impl Clone for BackendClientOptions
Source§fn clone(&self) -> BackendClientOptions
fn clone(&self) -> BackendClientOptions
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 BackendClientOptions
impl Debug for BackendClientOptions
Source§impl FromArgMatches for BackendClientOptions
impl FromArgMatches for BackendClientOptions
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 BackendClientOptions
impl RefUnwindSafe for BackendClientOptions
impl Send for BackendClientOptions
impl Sync for BackendClientOptions
impl Unpin for BackendClientOptions
impl UnwindSafe for BackendClientOptions
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