pub struct SessionOpenArgs {
pub repo: String,
pub branch: Option<String>,
pub branch_name: Option<String>,
pub branch_prefix: Option<String>,
pub base: Option<String>,
pub execution_checkout: Option<String>,
pub pool: Option<u32>,
pub overflow: Option<Bound>,
pub label: Vec<String>,
pub refuse_conflicts: bool,
}Expand description
Arguments for onevcs session open.
Fields§
§repo: StringAn identity key, a registered alias, an origin URL, or a path.
branch: Option<String>The branch to work on. One that already exists is continued from its own tip; one that does not is cut from the base. Omitted, one is derived.
branch_name: Option<String>A name to cut a branch at, which –branch is not: this one is sanitized, prefixed, and given the first free of -2, -3, … where something already carries it. Refused together with –branch.
branch_prefix: Option<String>The prefix every branch this open cuts is put in front of, over the host’s configuration and ONEVCS_BRANCH_PREFIX. An empty value cuts unprefixed.
base: Option<String>The branch this work is merged with and published into, and the one a new branch is cut from. Omitted, the identity’s registered base is used.
execution_checkout: Option<String>Which registered checkout to clone from.
pool: Option<u32>The pool size this open places against, over the host’s configuration: 0 cuts this session fresh under runs/ (and still spends the overflow), N may cut a slot while fewer than N exist. It removes no slot.
overflow: Option<Bound>The overflow bound this open is admitted against, over the host’s
configuration: an integer, or unlimited to opt this open out of the cap.
label: Vec<String>A label to stamp on the session record, as KEY=VALUE; repeatable, one value
per key. What a key means is the caller’s — a run, a node, a launcher — and
session holders and recoverable report and filter by it.
refuse_conflicts: boolRefuse a continued branch whose base conflicts with it (exit 3, the branch untouched) rather than open the session with the merge left in progress for it to conclude.
Trait Implementations§
Source§impl Args for SessionOpenArgs
impl Args for SessionOpenArgs
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
Command so it can instantiate self via
FromArgMatches::update_from_arg_matches_mut Read moreSource§impl Clone for SessionOpenArgs
impl Clone for SessionOpenArgs
Source§impl CommandFactory for SessionOpenArgs
impl CommandFactory for SessionOpenArgs
Source§impl Debug for SessionOpenArgs
impl Debug for SessionOpenArgs
impl Eq for SessionOpenArgs
Source§impl FromArgMatches for SessionOpenArgs
impl FromArgMatches for SessionOpenArgs
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>
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>
ArgMatches to self.Source§impl Parser for SessionOpenArgs
impl Parser for SessionOpenArgs
Source§fn parse_from<I, T>(itr: I) -> Self
fn parse_from<I, T>(itr: I) -> Self
Source§fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>
fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>
Source§fn update_from<I, T>(&mut self, itr: I)
fn update_from<I, T>(&mut self, itr: I)
Source§impl PartialEq for SessionOpenArgs
impl PartialEq for SessionOpenArgs
impl StructuralPartialEq for SessionOpenArgs
Auto Trait Implementations§
impl Freeze for SessionOpenArgs
impl RefUnwindSafe for SessionOpenArgs
impl Send for SessionOpenArgs
impl Sync for SessionOpenArgs
impl Unpin for SessionOpenArgs
impl UnsafeUnpin for SessionOpenArgs
impl UnwindSafe for SessionOpenArgs
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
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
key and return true if they are equal.