pub struct PublishArgs {
pub token: String,
pub policy: Option<MergePolicy>,
pub title: Option<String>,
pub body: Option<String>,
pub body_file: Option<PathBuf>,
pub draft: bool,
pub draft_reason: Option<String>,
}Expand description
Arguments for onevcs publish.
Fields§
§token: StringThe token of the session to publish.
policy: Option<MergePolicy>Override the policy the rules chose. It may narrow the stored policy but never widen it past requiring approvals.
title: Option<String>The change request’s title.
body: Option<String>The change request’s body. Omitted, it is opened with none.
body_file: Option<PathBuf>A file holding the change request’s body. A body is prose, so this is the form a caller with a real one uses.
draft: boolOpen the change request as a draft the session holds while its work is still
being made. change ready lifts it; a later publish without --draft lifts or
keeps it on its checks’ verdict.
draft_reason: Option<String>Why the session is holding the change request as a draft, on one line.
Omitted, a sentence saying the session is holding it while its work is still
being made. Refused without --draft.
Trait Implementations§
Source§impl Args for PublishArgs
impl Args for PublishArgs
Source§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
Append to
Command so it can instantiate self via
FromArgMatches::update_from_arg_matches_mut Read moreSource§impl Clone for PublishArgs
impl Clone for PublishArgs
Source§impl CommandFactory for PublishArgs
impl CommandFactory for PublishArgs
Source§impl Debug for PublishArgs
impl Debug for PublishArgs
impl Eq for PublishArgs
Source§impl FromArgMatches for PublishArgs
impl FromArgMatches for PublishArgs
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.Source§impl Parser for PublishArgs
impl Parser for PublishArgs
Source§fn parse_from<I, T>(itr: I) -> Self
fn parse_from<I, T>(itr: I) -> Self
Parse from iterator, exit on error.
Source§fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>
fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>
Parse from iterator, return Err on error.
Source§fn update_from<I, T>(&mut self, itr: I)
fn update_from<I, T>(&mut self, itr: I)
Source§impl PartialEq for PublishArgs
impl PartialEq for PublishArgs
impl StructuralPartialEq for PublishArgs
Auto Trait Implementations§
impl Freeze for PublishArgs
impl RefUnwindSafe for PublishArgs
impl Send for PublishArgs
impl Sync for PublishArgs
impl Unpin for PublishArgs
impl UnsafeUnpin for PublishArgs
impl UnwindSafe for PublishArgs
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.