pub struct LogicalRelationKey { /* private fields */ }Expand description
Stable project-qualified key for a deduplicated logical relation.
Implementations§
Source§impl LogicalRelationKey
impl LogicalRelationKey
Sourcepub const fn project(&self) -> ProjectInstanceId
pub const fn project(&self) -> ProjectInstanceId
Return the owning project instance.
Sourcepub fn digest_bytes(&self) -> Result<[u8; 32], GraphContractError>
pub fn digest_bytes(&self) -> Result<[u8; 32], GraphContractError>
Return the compact binary digest used by normalized persistence.
§Errors
Returns GraphContractError::InvalidStableKeyDigest if the private key
invariant was violated by incompatible persisted input.
Sourcepub fn canonical_identity(&self) -> &str
pub fn canonical_identity(&self) -> &str
Borrow the canonical identity retained for collision detection.
Sourcepub fn reconcile(&self, other: &Self) -> Result<bool, GraphContractError>
pub fn reconcile(&self, other: &Self) -> Result<bool, GraphContractError>
Determine whether two keys identify the same logical relation.
§Errors
Returns GraphContractError::StableKeyCollision for conflicting
canonical identities with the same digest.
Trait Implementations§
Source§impl Clone for LogicalRelationKey
impl Clone for LogicalRelationKey
Source§fn clone(&self) -> LogicalRelationKey
fn clone(&self) -> LogicalRelationKey
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 LogicalRelationKey
impl Debug for LogicalRelationKey
Source§impl<'de> Deserialize<'de> for LogicalRelationKey
impl<'de> Deserialize<'de> for LogicalRelationKey
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 LogicalRelationKey
impl PartialEq for LogicalRelationKey
Source§impl Serialize for LogicalRelationKey
impl Serialize for LogicalRelationKey
impl Eq for LogicalRelationKey
impl StructuralPartialEq for LogicalRelationKey
Auto Trait Implementations§
impl Freeze for LogicalRelationKey
impl RefUnwindSafe for LogicalRelationKey
impl Send for LogicalRelationKey
impl Sync for LogicalRelationKey
impl Unpin for LogicalRelationKey
impl UnwindSafe for LogicalRelationKey
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.