pub struct ClientConnectionArguments {
client_hostname: Option<String>,
client_port: Option<u16>,
client_secure: Option<bool>,
endpoint_graphql: Option<String>,
endpoint_dynamic_graph: Option<String>,
endpoint_runtime: Option<String>,
endpoint_plugins: Option<String>,
bearer: Option<String>,
danger_accept_invalid_certs: Option<bool>,
danger_accept_invalid_hostnames: Option<bool>,
}
Fields§
§client_hostname: Option<String>
The hostname to connect to.
client_port: Option<u16>
The port to connect to.
client_secure: Option<bool>
If true, connects via HTTPS.
endpoint_graphql: Option<String>
The endpoint to use.
endpoint_dynamic_graph: Option<String>
The endpoint to use.
endpoint_runtime: Option<String>
The endpoint to use.
endpoint_plugins: Option<String>
The endpoint to use.
bearer: Option<String>
The authentication token.
danger_accept_invalid_certs: Option<bool>
Controls the use of certificate validation.
Defaults to false
.
Warning: You should think very carefully before using this method. If invalid certificates are trusted, any certificate for any site will be trusted for use. This includes expired certificates. This introduces significant vulnerabilities, and should only be used as a last resort.
danger_accept_invalid_hostnames: Option<bool>
Controls the use of hostname verification.
Defaults to false
.
Warning: You should think very carefully before you use this method. If hostname verification is not used, any valid certificate for any site will be trusted for use from any other. This introduces a significant vulnerability to man-in-the-middle attacks.
Trait Implementations§
Source§impl Args for ClientConnectionArguments
impl Args for ClientConnectionArguments
Source§fn group_id() -> Option<Id>
fn group_id() -> Option<Id>
ArgGroup::id
][crate::ArgGroup::id] for this set of argumentsSource§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
Command
] so it can instantiate self
via
[FromArgMatches::update_from_arg_matches_mut
] Read moreSource§impl Clone for ClientConnectionArguments
impl Clone for ClientConnectionArguments
Source§fn clone(&self) -> ClientConnectionArguments
fn clone(&self) -> ClientConnectionArguments
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl CommandFactory for ClientConnectionArguments
impl CommandFactory for ClientConnectionArguments
Source§impl Debug for ClientConnectionArguments
impl Debug for ClientConnectionArguments
Source§impl From<&ClientConnectionArguments> for InstanceAddress
impl From<&ClientConnectionArguments> for InstanceAddress
Source§fn from(args: &ClientConnectionArguments) -> Self
fn from(args: &ClientConnectionArguments) -> Self
Source§impl FromArgMatches for ClientConnectionArguments
impl FromArgMatches for ClientConnectionArguments
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>
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>
ArgMatches
to self
.Source§impl Parser for ClientConnectionArguments
impl Parser for ClientConnectionArguments
§fn parse_from<I, T>(itr: I) -> Self
fn parse_from<I, T>(itr: I) -> Self
§fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>
fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>
§fn update_from<I, T>(&mut self, itr: I)
fn update_from<I, T>(&mut self, itr: I)
§fn try_update_from<I, T>(&mut self, itr: I) -> Result<(), Error>
fn try_update_from<I, T>(&mut self, itr: I) -> Result<(), Error>
Auto Trait Implementations§
impl Freeze for ClientConnectionArguments
impl RefUnwindSafe for ClientConnectionArguments
impl Send for ClientConnectionArguments
impl Sync for ClientConnectionArguments
impl Unpin for ClientConnectionArguments
impl UnwindSafe for ClientConnectionArguments
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
§impl<T> CloneAny for T
impl<T> CloneAny for T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more