pub struct CliAdapter {
pub engine: Engine,
}Fields§
§engine: EngineImplementations§
Source§impl CliAdapter
impl CliAdapter
pub fn new(engine: Engine) -> Self
pub fn space_add( &mut self, name: &str, description: Option<&str>, strict: bool, dirs: &[PathBuf], ) -> Result<String>
pub fn space_describe(&self, name: &str, text: &str) -> Result<String>
pub fn space_rename(&mut self, old: &str, new: &str) -> Result<String>
pub fn space_remove(&mut self, name: &str) -> Result<String>
pub fn space_default(&mut self, name: Option<&str>) -> Result<String>
pub fn space_current(&self, explicit: Option<&str>) -> Result<String>
pub fn space_list(&self) -> Result<String>
pub fn space_info(&self, name: &str) -> Result<String>
pub fn collection_list(&self, space: Option<&str>) -> Result<String>
pub fn collection_add( &self, space: Option<&str>, path: &Path, name: Option<&str>, description: Option<&str>, extensions: Option<&[String]>, no_index: bool, ) -> Result<String>
pub fn collection_info(&self, space: Option<&str>, name: &str) -> Result<String>
pub fn collection_describe( &self, space: Option<&str>, name: &str, text: &str, ) -> Result<String>
pub fn collection_rename( &self, space: Option<&str>, old: &str, new: &str, ) -> Result<String>
pub fn collection_remove( &self, space: Option<&str>, name: &str, ) -> Result<String>
pub fn ignore_show( &self, space: Option<&str>, collection: &str, ) -> Result<String>
pub fn ignore_add( &self, space: Option<&str>, collection: &str, pattern: &str, ) -> Result<String>
pub fn ignore_remove( &self, space: Option<&str>, collection: &str, pattern: &str, ) -> Result<String>
pub fn ignore_list(&self, space: Option<&str>) -> Result<String>
pub fn ignore_edit( &self, space: Option<&str>, collection: &str, ) -> Result<String>
pub fn models_list(&self) -> Result<String>
pub fn eval_run(&self, eval_file: Option<&Path>) -> Result<String>
pub fn search(&self, options: CliSearchOptions<'_>) -> Result<String>
pub fn update( &self, space: Option<&str>, collections: &[String], no_embed: bool, dry_run: bool, verbose: bool, ) -> Result<String>
pub fn schedule_add(&self, req: AddScheduleRequest) -> Result<String>
pub fn schedule_status(&self) -> Result<String>
pub fn schedule_remove(&self, req: RemoveScheduleRequest) -> Result<String>
pub fn status(&self, space: Option<&str>) -> Result<String>
pub fn ls( &self, space: Option<&str>, collection: &str, prefix: Option<&str>, all: bool, ) -> Result<String>
pub fn get( &self, space: Option<&str>, identifier: &str, offset: Option<usize>, limit: Option<usize>, ) -> Result<String>
pub fn multi_get( &self, space: Option<&str>, locators: &[String], max_files: usize, max_bytes: usize, ) -> Result<String>
Auto Trait Implementations§
impl !Freeze for CliAdapter
impl !RefUnwindSafe for CliAdapter
impl Send for CliAdapter
impl Sync for CliAdapter
impl Unpin for CliAdapter
impl UnsafeUnpin for CliAdapter
impl !UnwindSafe for CliAdapter
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> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Converts
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>, which can then be
downcast into Box<dyn ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Converts
Rc<Trait> (where Trait: Downcast) to Rc<Any>, which can then be further
downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Converts
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Converts
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.Source§impl<T> DowncastSend for T
impl<T> DowncastSend for T
Source§impl<T> DowncastSync for T
impl<T> DowncastSync for T
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