pub struct AuthLoginCommand {
pub token: Option<String>,
pub token_file: Option<String>,
pub username: Option<String>,
pub password: Option<String>,
pub password_file: Option<String>,
pub api_key_header: Option<String>,
pub api_key: Option<String>,
pub pairing_code: Option<String>,
}Expand description
Options for romm-cli auth login.
If no auth flags are provided, the command runs interactively.
Fields§
§token: Option<String>API token (Bearer). Skips interactive prompts.
token_file: Option<String>Read API token (Bearer) from UTF-8 file. Use ‘-’ for stdin.
username: Option<String>Basic auth username.
password: Option<String>Basic auth password (discouraged: visible in process list).
password_file: Option<String>Read Basic auth password from a UTF-8 file. Use ‘-’ for stdin.
api_key_header: Option<String>API key header name (e.g. X-API-Key).
api_key: Option<String>API key value.
pairing_code: Option<String>Web UI pairing code (8 characters).
Trait Implementations§
Source§impl Args for AuthLoginCommand
impl Args for AuthLoginCommand
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 AuthLoginCommand
impl Clone for AuthLoginCommand
Source§fn clone(&self) -> AuthLoginCommand
fn clone(&self) -> AuthLoginCommand
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 AuthLoginCommand
impl Debug for AuthLoginCommand
Source§impl FromArgMatches for AuthLoginCommand
impl FromArgMatches for AuthLoginCommand
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 AuthLoginCommand
impl RefUnwindSafe for AuthLoginCommand
impl Send for AuthLoginCommand
impl Sync for AuthLoginCommand
impl Unpin for AuthLoginCommand
impl UnsafeUnpin for AuthLoginCommand
impl UnwindSafe for AuthLoginCommand
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> 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>
Converts
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>
Converts
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