pub struct PublishBranchArgs {
pub branch: String,
pub repo: PathBuf,
pub title: Option<String>,
pub policy: Option<MergePolicy>,
pub body: Option<String>,
pub body_file: Option<PathBuf>,
}Expand description
Arguments for onevcs publish-branch.
A branch and a title arrive as typed text, as they do on every other command
that takes one, and are converted at dispatch — into the crate’s validated ref
and Subject — where a refusal can name what to do about them.
Fields§
§branch: StringThe completed branch to verify and publish.
repo: PathBufThe checkout the branch can be reached from.
title: Option<String>The change request’s title.
policy: Option<MergePolicy>Override the policy the rules chose. It may narrow the stored policy but never widen it past requiring approvals.
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.
Trait Implementations§
Source§impl Args for PublishBranchArgs
impl Args for PublishBranchArgs
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 PublishBranchArgs
impl Clone for PublishBranchArgs
Source§impl CommandFactory for PublishBranchArgs
impl CommandFactory for PublishBranchArgs
Source§impl Debug for PublishBranchArgs
impl Debug for PublishBranchArgs
impl Eq for PublishBranchArgs
Source§impl FromArgMatches for PublishBranchArgs
impl FromArgMatches for PublishBranchArgs
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 PublishBranchArgs
impl Parser for PublishBranchArgs
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 PublishBranchArgs
impl PartialEq for PublishBranchArgs
impl StructuralPartialEq for PublishBranchArgs
Auto Trait Implementations§
impl Freeze for PublishBranchArgs
impl RefUnwindSafe for PublishBranchArgs
impl Send for PublishBranchArgs
impl Sync for PublishBranchArgs
impl Unpin for PublishBranchArgs
impl UnsafeUnpin for PublishBranchArgs
impl UnwindSafe for PublishBranchArgs
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.