pub struct LoginCommand {
pub email: Option<String>,
pub password: Option<String>,
pub pat: Option<String>,
}Fields§
§email: Option<String>The username to use for authentication
password: Option<String>The password to use for authentication
pat: Option<String>Automatically log in using a Personal Access Token
Trait Implementations§
Source§impl Args for LoginCommand
impl Args for LoginCommand
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 LoginCommand
impl Clone for LoginCommand
Source§fn clone(&self) -> LoginCommand
fn clone(&self) -> LoginCommand
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 CommandFactory for LoginCommand
impl CommandFactory for LoginCommand
Source§impl Debug for LoginCommand
impl Debug for LoginCommand
Source§impl Default for LoginCommand
impl Default for LoginCommand
Source§fn default() -> LoginCommand
fn default() -> LoginCommand
Returns the “default value” for a type. Read more
Source§impl FromArgMatches for LoginCommand
impl FromArgMatches for LoginCommand
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.Source§impl Parser for LoginCommand
impl Parser for LoginCommand
Source§fn parse_from<I, T>(itr: I) -> Self
fn parse_from<I, T>(itr: I) -> Self
Parse from iterator, exit on error.
Source§fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>
fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>
Parse from iterator, return Err on error.
Source§fn update_from<I, T>(&mut self, itr: I)
fn update_from<I, T>(&mut self, itr: I)
Source§impl PartialEq for LoginCommand
impl PartialEq for LoginCommand
Source§fn eq(&self, other: &LoginCommand) -> bool
fn eq(&self, other: &LoginCommand) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for LoginCommand
Auto Trait Implementations§
impl Freeze for LoginCommand
impl RefUnwindSafe for LoginCommand
impl Send for LoginCommand
impl Sync for LoginCommand
impl Unpin for LoginCommand
impl UnsafeUnpin for LoginCommand
impl UnwindSafe for LoginCommand
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