Struct ockam_api::cli_state::spaces::SpaceState
source · pub struct SpaceState { /* private fields */ }Implementations§
Trait Implementations§
source§impl Clone for SpaceState
impl Clone for SpaceState
source§fn clone(&self) -> SpaceState
fn clone(&self) -> SpaceState
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for SpaceState
impl Debug for SpaceState
source§impl PartialEq for SpaceState
impl PartialEq for SpaceState
source§fn eq(&self, other: &SpaceState) -> bool
fn eq(&self, other: &SpaceState) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl StateItemTrait for SpaceState
impl StateItemTrait for SpaceState
type Config = SpaceConfig
source§fn new(path: PathBuf, config: Self::Config) -> Result<Self, CliStateError>
fn new(path: PathBuf, config: Self::Config) -> Result<Self, CliStateError>
Create a new item with the given config.
fn path(&self) -> &PathBuf
fn config(&self) -> &Self::Config
source§fn persist(&self) -> Result<(), CliStateError>
fn persist(&self) -> Result<(), CliStateError>
Persist the item to disk after updating the config.
fn delete(&self) -> Result<(), CliStateError>
impl Eq for SpaceState
impl StructuralEq for SpaceState
impl StructuralPartialEq for SpaceState
Auto Trait Implementations§
impl RefUnwindSafe for SpaceState
impl Send for SpaceState
impl Sync for SpaceState
impl Unpin for SpaceState
impl UnwindSafe for SpaceState
Blanket Implementations§
source§impl<D> AsyncTryClone for Dwhere
D: Clone + Sync,
impl<D> AsyncTryClone for Dwhere D: Clone + Sync,
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
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.