Struct database::cli::args::UpdateUser
source · pub struct UpdateUser {
pub email: String,
pub ouath_id: String,
pub is_teacher: bool,
pub is_student: bool,
pub is_admin: bool,
pub teams: String,
pub class: String,
pub first_name: String,
pub last_name: String,
}
Expand description
Update User Struct that takes in arguments to Update
Fields§
§email: String
§ouath_id: String
§is_teacher: bool
§is_student: bool
§is_admin: bool
§teams: String
§class: String
§first_name: String
§last_name: String
Trait Implementations§
source§impl Args for UpdateUser
impl Args for UpdateUser
source§fn group_id() -> Option<Id>
fn group_id() -> Option<Id>
Report the [
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
source§impl Debug for UpdateUser
impl Debug for UpdateUser
source§impl FromArgMatches for UpdateUser
impl FromArgMatches for UpdateUser
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
.