pub enum MemoryScope {
Work,
Personal,
Health,
Family,
Creative,
Finance,
Misc,
Unspecified,
}Expand description
Life-domain scope for a memory claim. Open-extensible per client, but every v1-compliant client MUST accept all values defined here when reading from a vault written by another client.
Variants§
Implementations§
Source§impl MemoryScope
impl MemoryScope
Sourcepub fn from_str_lossy(s: &str) -> MemoryScope
pub fn from_str_lossy(s: &str) -> MemoryScope
Case-insensitive parser that returns Unspecified for unknown input.
The scope enum is open-extensible per spec §cross-client-guarantees, so
receivers MUST tolerate unknown scope values when reading from a vault
written by another client — we coerce to Unspecified rather than
guess which v1 bucket to funnel them into.
Trait Implementations§
Source§impl Clone for MemoryScope
impl Clone for MemoryScope
Source§fn clone(&self) -> MemoryScope
fn clone(&self) -> MemoryScope
Returns a duplicate 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 MemoryScope
impl Debug for MemoryScope
Source§impl<'de> Deserialize<'de> for MemoryScope
impl<'de> Deserialize<'de> for MemoryScope
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<MemoryScope, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<MemoryScope, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Hash for MemoryScope
impl Hash for MemoryScope
Source§impl PartialEq for MemoryScope
impl PartialEq for MemoryScope
Source§impl Serialize for MemoryScope
impl Serialize for MemoryScope
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl Copy for MemoryScope
impl Eq for MemoryScope
impl StructuralPartialEq for MemoryScope
Auto Trait Implementations§
impl Freeze for MemoryScope
impl RefUnwindSafe for MemoryScope
impl Send for MemoryScope
impl Sync for MemoryScope
impl Unpin for MemoryScope
impl UnsafeUnpin for MemoryScope
impl UnwindSafe for MemoryScope
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