pub struct AssertionGraphRef {
pub assertion_uuid: Uuid,
pub graph_uuid: Uuid,
pub graph_kind: GraphObjectKind,
pub role: AssertionGraphRole,
pub ordinal: u32,
pub contract_version: u32,
}Expand description
One immutable assertion-to-graph UUID reference.
Fields§
§assertion_uuid: UuidOwning assertion.
graph_uuid: UuidReferenced public graph UUID.
graph_kind: GraphObjectKindNode or edge.
role: AssertionGraphRoleSubject/object/context role.
ordinal: u32Caller-significant contiguous position within the role.
contract_version: u32Reference record contract.
Implementations§
Source§impl AssertionGraphRef
impl AssertionGraphRef
Sourcepub fn new(
assertion_uuid: Uuid,
graph_uuid: Uuid,
graph_kind: GraphObjectKind,
role: AssertionGraphRole,
ordinal: u32,
) -> Result<Self, KnowledgeError>
pub fn new( assertion_uuid: Uuid, graph_uuid: Uuid, graph_kind: GraphObjectKind, role: AssertionGraphRole, ordinal: u32, ) -> Result<Self, KnowledgeError>
Construct one graph reference.
Trait Implementations§
Source§impl Clone for AssertionGraphRef
impl Clone for AssertionGraphRef
Source§impl Debug for AssertionGraphRef
impl Debug for AssertionGraphRef
impl Eq for AssertionGraphRef
Source§impl PartialEq for AssertionGraphRef
impl PartialEq for AssertionGraphRef
impl StructuralPartialEq for AssertionGraphRef
Auto Trait Implementations§
impl Freeze for AssertionGraphRef
impl RefUnwindSafe for AssertionGraphRef
impl Send for AssertionGraphRef
impl Sync for AssertionGraphRef
impl Unpin for AssertionGraphRef
impl UnsafeUnpin for AssertionGraphRef
impl UnwindSafe for AssertionGraphRef
Blanket Implementations§
impl<T> Allocation for T
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,
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.