pub struct FileRegistryStore { /* private fields */ }Implementations§
Source§impl FileRegistryStore
impl FileRegistryStore
pub fn new(root: impl Into<PathBuf>) -> Self
pub fn root(&self) -> &Path
pub fn put_version( &self, version: RegistrySkillVersion, options: PutVersionOptions, ) -> Result<RegistrySkillVersion, LocalRegistryError>
pub fn get_version( &self, skill_id: &str, version: Option<&str>, ) -> Result<Option<RegistrySkillVersion>, LocalRegistryError>
pub fn list_versions( &self, skill_id: &str, ) -> Result<Vec<RegistrySkillVersion>, LocalRegistryError>
pub fn list_skills(&self) -> Result<Vec<RegistrySkill>, LocalRegistryError>
Trait Implementations§
Source§impl Clone for FileRegistryStore
impl Clone for FileRegistryStore
Source§fn clone(&self) -> FileRegistryStore
fn clone(&self) -> FileRegistryStore
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for FileRegistryStore
impl RefUnwindSafe for FileRegistryStore
impl Send for FileRegistryStore
impl Sync for FileRegistryStore
impl Unpin for FileRegistryStore
impl UnsafeUnpin for FileRegistryStore
impl UnwindSafe for FileRegistryStore
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