#[non_exhaustive]pub enum WeaverCommand {
Show 13 variants
SessionStart {
domain: String,
git_path: Option<PathBuf>,
context: Option<String>,
goal: Option<String>,
},
SessionResume {
domain: String,
},
SessionStop {
domain: String,
},
SessionWatch {
domain: String,
},
SourceAdd {
domain: String,
source_type: String,
root: Option<PathBuf>,
watch: bool,
},
SourceList {
domain: String,
},
Confidence {
domain: String,
edge: Option<String>,
verbose: bool,
},
Export {
domain: String,
min_confidence: f64,
output: PathBuf,
},
Import {
domain: String,
input: PathBuf,
},
MetaStatus {
domain: String,
},
MetaStrategies,
MetaExportKb {
output: PathBuf,
},
Stitch {
source: String,
target: String,
output: String,
},
}Expand description
Commands sent to the WeaverEngine via IPC.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
SessionStart
Start a new modeling session.
SessionResume
Resume an existing session.
SessionStop
Stop a session.
SessionWatch
Watch session progress (streaming).
SourceAdd
Add a data source to a session.
SourceList
List sources for a session.
Confidence
Query confidence.
Export
Export model.
Import
Import model.
MetaStatus
Query meta-loom status.
MetaStrategies
List learned strategies.
MetaExportKb
Export knowledge base.
Stitch
Stitch two domains.
Trait Implementations§
Source§impl Clone for WeaverCommand
impl Clone for WeaverCommand
Source§fn clone(&self) -> WeaverCommand
fn clone(&self) -> WeaverCommand
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for WeaverCommand
impl Debug for WeaverCommand
Source§impl<'de> Deserialize<'de> for WeaverCommand
impl<'de> Deserialize<'de> for WeaverCommand
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for WeaverCommand
impl RefUnwindSafe for WeaverCommand
impl Send for WeaverCommand
impl Sync for WeaverCommand
impl Unpin for WeaverCommand
impl UnsafeUnpin for WeaverCommand
impl UnwindSafe for WeaverCommand
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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>
Converts
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>
Converts
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