pub struct Facade { /* private fields */ }
Implementations§
Source§impl Facade
impl Facade
pub fn search_oca_bundle( &self, language: Option<Language>, query: String, limit: usize, page: usize, ) -> SearchResult
pub fn fetch_all_oca_bundle( &self, limit: usize, page: usize, ) -> Result<AllOCABundleResult, Vec<String>>
pub fn fetch_all_capture_base( &self, limit: usize, page: usize, ) -> Result<AllCaptureBaseResult, Vec<String>>
pub fn get_oca_objects( &self, saids: Vec<String>, ) -> Result<Vec<OCAObject>, Vec<String>>
pub fn get_oca_bundle( &self, said: SelfAddressingIdentifier, with_dep: bool, ) -> Result<BundleWithDependencies, Vec<String>>
pub fn get_oca_bundle_steps( &self, said: SelfAddressingIdentifier, ) -> Result<Vec<OCABuildStep>, Vec<String>>
Sourcepub fn get_oca_bundle_ocafile(
&self,
said: SelfAddressingIdentifier,
dereference: bool,
) -> Result<String, Vec<String>>
pub fn get_oca_bundle_ocafile( &self, said: SelfAddressingIdentifier, dereference: bool, ) -> Result<String, Vec<String>>
Retrive the ocafile for a given said If dereference is true, all local references will be dereferenced to SAID
Sourcepub fn get_oca_bundle_ast(
&self,
said: SelfAddressingIdentifier,
) -> Result<OCAAst, Vec<String>>
pub fn get_oca_bundle_ast( &self, said: SelfAddressingIdentifier, ) -> Result<OCAAst, Vec<String>>
Retrive steps (AST representation) for a given said
pub fn parse_oca_bundle_to_ocafile( &self, bundle: &OCABundle, ) -> Result<String, Vec<String>>
Source§impl Facade
impl Facade
pub fn new( db: Box<dyn DataStorage>, db_cache: Box<dyn DataStorage>, cache_storage_config: SQLiteConfig, ) -> Self
pub fn storage(&self) -> &dyn DataStorage
Auto Trait Implementations§
impl Freeze for Facade
impl !RefUnwindSafe for Facade
impl Send for Facade
impl !Sync for Facade
impl Unpin for Facade
impl !UnwindSafe for Facade
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