pub enum ReviewCommand {
Create {
name: String,
},
Start {
name: String,
},
List,
Show {
name: String,
json: bool,
},
SetState {
name: String,
state: StateArg,
},
AddComment {
name: String,
file: String,
side: SideArg,
old_line: Option<u32>,
new_line: Option<u32>,
body: String,
author: AuthorArg,
},
AddReply {
name: String,
comment_id: u64,
body: String,
author: AuthorArg,
},
MarkAddressed {
name: String,
comment_id: u64,
author: AuthorArg,
},
MarkOpen {
name: String,
comment_id: u64,
author: AuthorArg,
},
RunAiSession {
name: String,
provider: AiProviderArg,
mode: Option<AiSessionModeArg>,
comment_ids: Vec<u64>,
},
Done {
name: String,
},
Resolve {
name: String,
},
}Variants§
Create
Start
List
Show
SetState
AddComment
Fields
AddReply
MarkAddressed
MarkOpen
RunAiSession
Done
Resolve
Trait Implementations§
Source§impl Debug for ReviewCommand
impl Debug for ReviewCommand
Source§impl StructOpt for ReviewCommand
impl StructOpt for ReviewCommand
Source§fn from_clap(matches: &ArgMatches<'_>) -> Self
fn from_clap(matches: &ArgMatches<'_>) -> Self
Builds the struct from
clap::ArgMatches. It’s guaranteed to succeed
if matches originates from an App generated by StructOpt::clap called on
the same type, otherwise it must panic.Source§fn from_args() -> Selfwhere
Self: Sized,
fn from_args() -> Selfwhere
Self: Sized,
Builds the struct from the command line arguments (
std::env::args_os).
Calls clap::Error::exit on failure, printing the error message and aborting the program.Source§fn from_args_safe() -> Result<Self, Error>where
Self: Sized,
fn from_args_safe() -> Result<Self, Error>where
Self: Sized,
Builds the struct from the command line arguments (
std::env::args_os).
Unlike StructOpt::from_args, returns clap::Error on failure instead of aborting the program,
so calling .exit is up to you.Source§fn from_iter<I>(iter: I) -> Self
fn from_iter<I>(iter: I) -> Self
Gets the struct from any iterator such as a
Vec of your making.
Print the error message and quit the program in case of failure. Read moreAuto Trait Implementations§
impl Freeze for ReviewCommand
impl RefUnwindSafe for ReviewCommand
impl Send for ReviewCommand
impl Sync for ReviewCommand
impl Unpin for ReviewCommand
impl UnsafeUnpin for ReviewCommand
impl UnwindSafe for ReviewCommand
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> 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