pub struct MergeEntitiesArgs {
pub names: Vec<String>,
pub ids: Vec<i64>,
pub into: Option<String>,
pub into_id: Option<i64>,
pub namespace: Option<String>,
pub format: OutputFormat,
pub json: bool,
pub db: Option<String>,
pub cross_namespace: bool,
}Expand description
Merge entities args.
Fields§
§names: Vec<String>Comma-separated list of source entity names to merge into the target.
ids: Vec<i64>v1.1.1 (P5): comma-separated list of source entity IDs. IDs are globally unique, so they disambiguate homonyms across namespaces. Conflicts with –names; every ID must belong to the resolved namespace.
into: Option<String>Target entity name. Must already exist. All source relationships are redirected here.
into_id: Option<i64>v1.1.1 (P5): target entity ID. Unambiguous alternative to –into.
namespace: Option<String>Namespace scope.
format: OutputFormatOutput format.
json: boolEmit machine-readable JSON on stdout.
db: Option<String>Path to the SQLite database file.
cross_namespace: boolv1.1.03: allow merging source entities from OTHER namespaces into the target. Default false preserves same-namespace safety. When true, each –ids source is resolved by its own row (no namespace filter); target must still exist in the resolved namespace.
Trait Implementations§
Source§impl Args for MergeEntitiesArgs
impl Args for MergeEntitiesArgs
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 FromArgMatches for MergeEntitiesArgs
impl FromArgMatches for MergeEntitiesArgs
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.Auto Trait Implementations§
impl Freeze for MergeEntitiesArgs
impl RefUnwindSafe for MergeEntitiesArgs
impl Send for MergeEntitiesArgs
impl Sync for MergeEntitiesArgs
impl Unpin for MergeEntitiesArgs
impl UnsafeUnpin for MergeEntitiesArgs
impl UnwindSafe for MergeEntitiesArgs
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<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more