pub struct PromoteArgs {
pub scratch_id: String,
pub kind: String,
pub summary: Option<String>,
pub symbol: Option<String>,
pub author: Option<String>,
}Fields§
§scratch_id: StringScratch entry ID to promote.
kind: StringLedger entry kind: decision, assumption, constraint, rationale, hazard, tradeoff, invariant, ownership, proof.
summary: Option<String>One-line summary. Defaults to the first non-empty line of the scratch content when not supplied.
symbol: Option<String>Attach the ledger entry to this symbol (qualified name). When not set, the scratch entry’s existing symbol_id is reused. At least one of –symbol or an existing symbol_id must be present.
Author id to record on the ledger entry (default: ASD_AGENT_ID or “asd-cli”).
Trait Implementations§
Source§impl Args for PromoteArgs
impl Args for PromoteArgs
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 Debug for PromoteArgs
impl Debug for PromoteArgs
Source§impl FromArgMatches for PromoteArgs
impl FromArgMatches for PromoteArgs
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.Auto Trait Implementations§
impl Freeze for PromoteArgs
impl RefUnwindSafe for PromoteArgs
impl Send for PromoteArgs
impl Sync for PromoteArgs
impl Unpin for PromoteArgs
impl UnsafeUnpin for PromoteArgs
impl UnwindSafe for PromoteArgs
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