pub struct ModelsStore { /* private fields */ }Expand description
pi’s FileModelsStore: catalogs by provider id in models-store.json.
Implementations§
Source§impl ModelsStore
impl ModelsStore
Sourcepub fn new(path: impl Into<PathBuf>) -> ModelsStore
pub fn new(path: impl Into<PathBuf>) -> ModelsStore
The store at path.
Sourcepub fn read_all(&self) -> Map<String, Value>
pub fn read_all(&self) -> Map<String, Value>
Every stored entry. An unreadable file reads as empty.
Trait Implementations§
Source§impl Clone for ModelsStore
impl Clone for ModelsStore
Auto Trait Implementations§
impl Forget for ModelsStore
impl Freeze for ModelsStore
impl RefUnwindSafe for ModelsStore
impl Send for ModelsStore
impl Sync for ModelsStore
impl Unpin for ModelsStore
impl UnsafeUnpin for ModelsStore
impl UnwindSafe for ModelsStore
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