pub struct UnlinkArgs {
pub from: Option<String>,
pub to: Option<String>,
pub relation: Option<String>,
pub entity: Option<String>,
pub all: bool,
pub memory: Option<String>,
pub namespace: Option<String>,
pub format: OutputFormat,
pub json: bool,
pub db: Option<String>,
}Fields§
§from: Option<String>Source ENTITY name (graph node, not memory). Also accepts the aliases --source and --name.
To list current entities run graph --format json | jaq '.nodes[].name'.
to: Option<String>Target ENTITY name (graph node, not memory). Also accepts the alias --target.
relation: Option<String>Relation type to remove. When omitted with –from/–to, ALL relationships between those two entities are deleted. Accepts canonical values (e.g. uses, depends-on) or any custom snake_case/kebab-case string.
entity: Option<String>Entity name. Combine with –all to remove every relationship of that entity, or with –memory to remove the curated memory↔entity binding.
all: boolWhen combined with –entity, removes ALL relationships where that entity is source or target.
memory: Option<String>GAP-SG-52: memory name. Combine with –entity to surgically remove the
curated memory_entities binding for that (memory, entity) pair —
covering bindings created via remember --graph-stdin that prune-ner
would not target selectively.
namespace: Option<String>§format: OutputFormat§json: bool§db: Option<String>Trait Implementations§
Source§impl Args for UnlinkArgs
impl Args for UnlinkArgs
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 UnlinkArgs
impl FromArgMatches for UnlinkArgs
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 UnlinkArgs
impl RefUnwindSafe for UnlinkArgs
impl Send for UnlinkArgs
impl Sync for UnlinkArgs
impl Unpin for UnlinkArgs
impl UnsafeUnpin for UnlinkArgs
impl UnwindSafe for UnlinkArgs
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