pub struct ConflictingMemoryInput {
pub memory_id: String,
pub claim_key: Option<String>,
pub claim: String,
pub authority: AuthorityProofHint,
pub conflicts_with: Vec<String>,
}Expand description
Memory-shaped input for a caller-supplied contradiction set.
Fields§
§memory_id: StringDurable memory identifier.
claim_key: Option<String>Stable belief-slot key when known.
claim: StringMemory claim text.
Authority and proof hints for this memory.
conflicts_with: Vec<String>Memory IDs this input is known to conflict with.
Implementations§
Source§impl ConflictingMemoryInput
impl ConflictingMemoryInput
Sourcepub fn new(
memory_id: impl Into<String>,
claim_key: Option<impl Into<String>>,
claim: impl Into<String>,
authority: AuthorityProofHint,
) -> Self
pub fn new( memory_id: impl Into<String>, claim_key: Option<impl Into<String>>, claim: impl Into<String>, authority: AuthorityProofHint, ) -> Self
Creates a memory input with no explicit conflicts_with edges.
Sourcepub fn with_conflicts(self, conflicts_with: Vec<String>) -> Self
pub fn with_conflicts(self, conflicts_with: Vec<String>) -> Self
Adds explicit conflict edges.
Trait Implementations§
Source§impl Clone for ConflictingMemoryInput
impl Clone for ConflictingMemoryInput
Source§fn clone(&self) -> ConflictingMemoryInput
fn clone(&self) -> ConflictingMemoryInput
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 ConflictingMemoryInput
impl Debug for ConflictingMemoryInput
Source§impl PartialEq for ConflictingMemoryInput
impl PartialEq for ConflictingMemoryInput
Source§fn eq(&self, other: &ConflictingMemoryInput) -> bool
fn eq(&self, other: &ConflictingMemoryInput) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for ConflictingMemoryInput
impl StructuralPartialEq for ConflictingMemoryInput
Auto Trait Implementations§
impl Freeze for ConflictingMemoryInput
impl RefUnwindSafe for ConflictingMemoryInput
impl Send for ConflictingMemoryInput
impl Sync for ConflictingMemoryInput
impl Unpin for ConflictingMemoryInput
impl UnsafeUnpin for ConflictingMemoryInput
impl UnwindSafe for ConflictingMemoryInput
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