pub struct Store { /* private fields */ }Expand description
Reads and writes workspace definitions and settings.
Implementations§
Source§impl Store
impl Store
pub fn new(state: &Path) -> Store
pub fn token_path(&self, org: &OrgId, name: &str) -> PathBuf
pub fn list(&self, org: &OrgId) -> Result<Vec<Workspace>>
pub fn get(&self, org: &OrgId, name: &str) -> Result<Option<Workspace>>
pub fn put(&self, org: &OrgId, w: &Workspace) -> Result<()>
pub fn delete(&self, org: &OrgId, name: &str) -> Result<()>
pub fn settings(&self, org: &OrgId) -> Result<Settings>
pub fn put_settings(&self, org: &OrgId, s: &Settings) -> Result<()>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Store
impl RefUnwindSafe for Store
impl Send for Store
impl Sync for Store
impl Unpin for Store
impl UnsafeUnpin for Store
impl UnwindSafe for Store
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