pub struct EntityResolutionKey { /* private fields */ }Expand description
One exported canonical key bound to its owning graph entity.
Implementations§
Source§impl EntityResolutionKey
impl EntityResolutionKey
Sourcepub fn new(
entity: GraphEntityKey,
key: CanonicalResolutionKey,
) -> Result<Self, GraphContractError>
pub fn new( entity: GraphEntityKey, key: CanonicalResolutionKey, ) -> Result<Self, GraphContractError>
Bind one canonical key to its exported entity.
§Errors
Returns an error when the entity and key belong to different projects.
Sourcepub const fn entity(&self) -> &GraphEntityKey
pub const fn entity(&self) -> &GraphEntityKey
Borrow the owning entity key.
Sourcepub const fn key(&self) -> &CanonicalResolutionKey
pub const fn key(&self) -> &CanonicalResolutionKey
Borrow the canonical resolver key.
Trait Implementations§
Source§impl Clone for EntityResolutionKey
impl Clone for EntityResolutionKey
Source§fn clone(&self) -> EntityResolutionKey
fn clone(&self) -> EntityResolutionKey
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 EntityResolutionKey
impl Debug for EntityResolutionKey
Source§impl PartialEq for EntityResolutionKey
impl PartialEq for EntityResolutionKey
Source§impl Serialize for EntityResolutionKey
impl Serialize for EntityResolutionKey
impl Eq for EntityResolutionKey
impl StructuralPartialEq for EntityResolutionKey
Auto Trait Implementations§
impl Freeze for EntityResolutionKey
impl RefUnwindSafe for EntityResolutionKey
impl Send for EntityResolutionKey
impl Sync for EntityResolutionKey
impl Unpin for EntityResolutionKey
impl UnwindSafe for EntityResolutionKey
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.