pub enum MemoryScope {
Full,
NeutralAndRelationship,
RelationshipOnly,
NeutralOnly,
InsightsOnly,
None,
}Expand description
Caller-supplied memory injection scope. Default narrows today’s behavior (the #40 mitigation).
Variants§
Implementations§
Source§impl MemoryScope
impl MemoryScope
Sourcepub fn resolve(self) -> (InsightMode, bool, bool)
pub fn resolve(self) -> (InsightMode, bool, bool)
Resolve to (insight mode, inject global memory X, inject relationship memory Y).
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 (const: unstable) · 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 Default for MemoryScope
impl Default for MemoryScope
Source§fn default() -> MemoryScope
fn default() -> MemoryScope
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for MemoryScope
impl<'de> Deserialize<'de> for MemoryScope
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for MemoryScope
impl PartialEq for MemoryScope
Source§fn eq(&self, other: &MemoryScope) -> bool
fn eq(&self, other: &MemoryScope) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for MemoryScope
impl Serialize for MemoryScope
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