pub enum PrCommentCmd {
Create {
number: i64,
body: CommentArgs,
path: Option<String>,
position: Option<i64>,
commit_id: Option<String>,
},
List {
number: i64,
comment_type: Option<String>,
limit: LimitArgs,
},
Edit {
target: i64,
last: bool,
body: Option<String>,
},
Delete {
target: i64,
last: bool,
yes: bool,
},
}Variants§
Create
Create a comment on a pull request.
Fields
§
body: CommentArgsList
List comments on a pull request.
Fields
Edit
Edit a comment by id, or the current user’s latest on a PR via --last.
Fields
Delete
Delete a comment by id, or the current user’s latest on a PR via --last.
Trait Implementations§
Source§impl Clone for PrCommentCmd
impl Clone for PrCommentCmd
Source§fn clone(&self) -> PrCommentCmd
fn clone(&self) -> PrCommentCmd
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 FromArgMatches for PrCommentCmd
impl FromArgMatches for PrCommentCmd
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 PrCommentCmd
impl Subcommand for PrCommentCmd
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 PrCommentCmd
impl RefUnwindSafe for PrCommentCmd
impl Send for PrCommentCmd
impl Sync for PrCommentCmd
impl Unpin for PrCommentCmd
impl UnsafeUnpin for PrCommentCmd
impl UnwindSafe for PrCommentCmd
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