pub struct RebindArgs {
pub from: Option<String>,
pub to: Option<String>,
pub map: Option<PathBuf>,
pub agent_id: String,
}Fields§
§from: Option<String>The symbol whose ledger history should move: its symbol_id
(sym_abc123…) — the only handle on an orphaned symbol, which is no
longer in the index — or its qualified name.
to: Option<String>The qualified name the history moves to. Must exist in the index.
map: Option<PathBuf>A JSON file of many rebinds at once: {"<symbol_id or qname>": "<qname it moves to>", …}. Every source and target is checked before anything
is written, and all of them land in one commit.
agent_id: StringAuthor/agent performing the rebind.
Trait Implementations§
Source§impl Args for RebindArgs
impl Args for RebindArgs
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 RebindArgs
impl Debug for RebindArgs
Source§impl FromArgMatches for RebindArgs
impl FromArgMatches for RebindArgs
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 RebindArgs
impl RefUnwindSafe for RebindArgs
impl Send for RebindArgs
impl Sync for RebindArgs
impl Unpin for RebindArgs
impl UnsafeUnpin for RebindArgs
impl UnwindSafe for RebindArgs
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