pub struct LinkArgs {Show 13 fields
pub from: Option<String>,
pub from_id: Option<i64>,
pub to: Option<String>,
pub to_id: Option<i64>,
pub relation: String,
pub weight: Option<f64>,
pub namespace: Option<String>,
pub format: OutputFormat,
pub json: bool,
pub db: Option<String>,
pub create_missing: bool,
pub entity_type: EntityType,
pub strict_relations: bool,
}Fields§
§from: Option<String>Source ENTITY name (graph node, not memory). Entities are curated via
remember --graph-stdin, created by enrich, or auto-created via --create-missing.
Use graph entities to list available entity names. Also accepts the alias --name.
Conflicts with --from-id.
from_id: Option<i64>Source entity ID (unambiguous alternative to --from). Conflicts with --from.
to: Option<String>Target ENTITY name (graph node, not memory). See --from for sourcing entity names.
Conflicts with --to-id.
to_id: Option<i64>Target entity ID (unambiguous alternative to --to). Conflicts with --to.
relation: StringRelation type between entities. Canonical values: applies-to, uses, depends-on, causes, fixes, contradicts, supports, follows, related, mentions, replaces, tracked-in. Any kebab-case or snake_case string is also accepted as a custom relation.
weight: Option<f64>§namespace: Option<String>§format: OutputFormat§json: bool§db: Option<String>§create_missing: boolAuto-create entities when they do not exist. Created entities default to
type concept unless --entity-type specifies a different type.
entity_type: EntityTypeEntity type assigned to auto-created entities (only effective with --create-missing).
strict_relations: boolReject non-canonical relation types with exit 1.
When set, any relation not in the canonical list causes an immediate error. Canonical values: applies-to, uses, depends-on, causes, fixes, contradicts, supports, follows, related, mentions, replaces, tracked-in.
Trait Implementations§
Source§impl Args for LinkArgs
impl Args for LinkArgs
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 LinkArgs
impl FromArgMatches for LinkArgs
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 LinkArgs
impl RefUnwindSafe for LinkArgs
impl Send for LinkArgs
impl Sync for LinkArgs
impl Unpin for LinkArgs
impl UnsafeUnpin for LinkArgs
impl UnwindSafe for LinkArgs
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