pub enum CaseDraftAction {
New {
case_ref: String,
to: Vec<String>,
cc: Vec<String>,
subject: String,
identity: Option<String>,
body: Option<String>,
body_file: Option<String>,
},
Reply {
case_ref: String,
message_id: String,
identity: Option<String>,
body: Option<String>,
body_file: Option<String>,
all: bool,
},
Change {
case_ref: String,
draft_name: String,
subject: Option<String>,
to: Vec<String>,
cc: Vec<String>,
clear_cc: bool,
identity: Option<String>,
body: Option<String>,
body_file: Option<String>,
},
Show {
case_ref: String,
draft_name: String,
},
Validate {
case_ref: String,
draft_name: String,
},
Save {
case_ref: String,
draft_name: String,
},
Send {
case_ref: String,
draft_name: String,
},
Attach {
case_ref: String,
draft_name: String,
path: String,
},
Remove {
case_ref: String,
draft_name: String,
reason: Option<String>,
},
}Variants§
New
Scaffold a new outbound draft (not a reply) in this case.
Fields
Reply
Scaffold a reply draft to a message, prefilled and quoting the original.
Fields
Change
Change an existing editable draft in place.
Fields
Show
Show an existing draft in a review-friendly JSON shape.
Fields
Validate
Validate a draft under the case drafts directory.
Fields
Save
Queue this draft to be saved to the remote Drafts mailbox.
Fields
Send
Queue this draft to be sent and recorded in the case after push succeeds.
Fields
Attach
Copy or reference a file and add it to a draft’s attachments.
Fields
Remove
Remove a local draft and any queued outbound item for it.
Trait Implementations§
Source§impl Debug for CaseDraftAction
impl Debug for CaseDraftAction
Source§impl FromArgMatches for CaseDraftAction
impl FromArgMatches for CaseDraftAction
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 CaseDraftAction
impl Subcommand for CaseDraftAction
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 CaseDraftAction
impl RefUnwindSafe for CaseDraftAction
impl Send for CaseDraftAction
impl Sync for CaseDraftAction
impl Unpin for CaseDraftAction
impl UnsafeUnpin for CaseDraftAction
impl UnwindSafe for CaseDraftAction
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