pub struct ReclassifyRelationArgs {Show 13 fields
pub source: Option<String>,
pub target: Option<String>,
pub from_relation: Option<String>,
pub literal_from: Option<String>,
pub to_relation: String,
pub batch: bool,
pub filter_source_type: Option<EntityType>,
pub filter_target_type: Option<EntityType>,
pub dry_run: bool,
pub namespace: Option<String>,
pub format: OutputFormat,
pub json: bool,
pub db: Option<String>,
}Fields§
§source: Option<String>Source entity name (single mode). Mutually exclusive with –batch.
target: Option<String>Target entity name (single mode). Mutually exclusive with –batch.
from_relation: Option<String>Current relation type to rename (normalized: hyphens become underscores at the CLI boundary). Required in both single and batch modes unless –literal-from is given.
literal_from: Option<String>v1.1.1 (P4): current relation type to rename, matched LITERALLY —
no normalization is applied, so edges stored with hyphenated values
(e.g. applies-to) become reachable. Mutually exclusive with
–from-relation.
to_relation: StringNew relation type to assign. Required in both single and batch modes.
batch: boolEnable batch reclassification of all edges with –from-relation. Requires –from-relation and –to-relation.
filter_source_type: Option<EntityType>Filter batch: only rename edges whose source entity has this type.
filter_target_type: Option<EntityType>Filter batch: only rename edges whose target entity has this type.
dry_run: boolPreview count without committing changes.
namespace: Option<String>§format: OutputFormat§json: bool§db: Option<String>Trait Implementations§
Source§impl Args for ReclassifyRelationArgs
impl Args for ReclassifyRelationArgs
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 ReclassifyRelationArgs
impl FromArgMatches for ReclassifyRelationArgs
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 ReclassifyRelationArgs
impl RefUnwindSafe for ReclassifyRelationArgs
impl Send for ReclassifyRelationArgs
impl Sync for ReclassifyRelationArgs
impl Unpin for ReclassifyRelationArgs
impl UnsafeUnpin for ReclassifyRelationArgs
impl UnwindSafe for ReclassifyRelationArgs
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