pub struct GraphMutationBatch {
pub evidence: Vec<EvidenceRecord>,
pub relations: Vec<GraphRelationRecord>,
pub claims: Vec<ClaimRecord>,
pub events: Vec<EventRecord>,
}Expand description
A transactional graph mutation unit.
Fields§
§evidence: Vec<EvidenceRecord>§relations: Vec<GraphRelationRecord>§claims: Vec<ClaimRecord>§events: Vec<EventRecord>Implementations§
Source§impl GraphMutationBatch
impl GraphMutationBatch
Sourcepub fn new(evidence: Vec<EvidenceRecord>) -> Result<Self, DomainError>
pub fn new(evidence: Vec<EvidenceRecord>) -> Result<Self, DomainError>
Creates a non-empty batch for a single graph transaction.
Sourcepub fn with_facts(
evidence: Vec<EvidenceRecord>,
relations: Vec<GraphRelationRecord>,
claims: Vec<ClaimRecord>,
events: Vec<EventRecord>,
) -> Result<Self, DomainError>
pub fn with_facts( evidence: Vec<EvidenceRecord>, relations: Vec<GraphRelationRecord>, claims: Vec<ClaimRecord>, events: Vec<EventRecord>, ) -> Result<Self, DomainError>
Creates a non-empty batch containing evidence and structured facts.
Trait Implementations§
Source§impl Clone for GraphMutationBatch
impl Clone for GraphMutationBatch
Source§fn clone(&self) -> GraphMutationBatch
fn clone(&self) -> GraphMutationBatch
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 GraphMutationBatch
impl Debug for GraphMutationBatch
Source§impl<'de> Deserialize<'de> for GraphMutationBatch
impl<'de> Deserialize<'de> for GraphMutationBatch
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
impl Eq for GraphMutationBatch
Source§impl PartialEq for GraphMutationBatch
impl PartialEq for GraphMutationBatch
Source§impl Serialize for GraphMutationBatch
impl Serialize for GraphMutationBatch
impl StructuralPartialEq for GraphMutationBatch
Auto Trait Implementations§
impl Freeze for GraphMutationBatch
impl RefUnwindSafe for GraphMutationBatch
impl Send for GraphMutationBatch
impl Sync for GraphMutationBatch
impl Unpin for GraphMutationBatch
impl UnsafeUnpin for GraphMutationBatch
impl UnwindSafe for GraphMutationBatch
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.