pub enum GuestCommands {
Invite {
email: String,
can_edit_tags: bool,
can_see_time_spent: bool,
can_create_views: bool,
custom_role_id: Option<u64>,
},
Get {
id: String,
},
Update {
id: String,
can_edit_tags: Option<bool>,
can_see_time_spent: Option<bool>,
can_create_views: Option<bool>,
custom_role_id: Option<u64>,
},
Remove {
id: String,
},
ShareTask {
task_id: String,
guest_id: String,
permission: String,
},
UnshareTask {
task_id: String,
guest_id: String,
},
ShareList {
list_id: String,
guest_id: String,
permission: String,
},
UnshareList {
list_id: String,
guest_id: String,
},
ShareFolder {
folder_id: String,
guest_id: String,
permission: String,
},
UnshareFolder {
folder_id: String,
guest_id: String,
},
}Variants§
Invite
Invite a guest to the workspace (Enterprise only)
Fields
Allow guest to edit tags
Get
Get a guest by ID
Update
Update guest permissions
Fields
Allow guest to edit tags
Remove
Remove a guest from the workspace
Share a task with a guest
Unshare a task from a guest
Share a list with a guest
Unshare a list from a guest
Share a folder with a guest
Unshare a folder from a guest
Trait Implementations§
Source§impl FromArgMatches for GuestCommands
impl FromArgMatches for GuestCommands
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<'b>(
&mut self,
__clap_arg_matches: &mut ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches_mut<'b>( &mut self, __clap_arg_matches: &mut ArgMatches, ) -> Result<(), Error>
Assign values from
ArgMatches to self.Source§impl Subcommand for GuestCommands
impl Subcommand for GuestCommands
Source§fn augment_subcommands<'b>(__clap_app: Command) -> Command
fn augment_subcommands<'b>(__clap_app: Command) -> Command
Source§fn augment_subcommands_for_update<'b>(__clap_app: Command) -> Command
fn augment_subcommands_for_update<'b>(__clap_app: Command) -> Command
Append to
Command so it can instantiate self via
FromArgMatches::update_from_arg_matches_mut Read moreSource§fn has_subcommand(__clap_name: &str) -> bool
fn has_subcommand(__clap_name: &str) -> bool
Test whether
Self can parse a specific subcommandAuto Trait Implementations§
impl Freeze for GuestCommands
impl RefUnwindSafe for GuestCommands
impl Send for GuestCommands
impl Sync for GuestCommands
impl Unpin for GuestCommands
impl UnsafeUnpin for GuestCommands
impl UnwindSafe for GuestCommands
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