pub struct PortableResolutionKey { /* private fields */ }Expand description
Project-independent canonical resolution identity carried by a derived graph snapshot.
Implementations§
Source§impl PortableResolutionKey
impl PortableResolutionKey
Sourcepub fn new(
domain: ResolutionKeyDomain,
canonical_identity: String,
) -> Result<Self, GraphContractError>
pub fn new( domain: ResolutionKeyDomain, canonical_identity: String, ) -> Result<Self, GraphContractError>
Validate one portable resolver identity.
§Errors
Returns an error for oversized, malformed, or incomplete canonical field material.
Sourcepub const fn domain(&self) -> ResolutionKeyDomain
pub const fn domain(&self) -> ResolutionKeyDomain
Return the closed resolver family.
Sourcepub fn canonical_identity(&self) -> &str
pub fn canonical_identity(&self) -> &str
Borrow the project-independent canonical identity.
Sourcepub fn bind(&self, project: ProjectInstanceId) -> CanonicalResolutionKey
pub fn bind(&self, project: ProjectInstanceId) -> CanonicalResolutionKey
Bind this portable identity to one destination project.
Trait Implementations§
Source§impl Clone for PortableResolutionKey
impl Clone for PortableResolutionKey
Source§fn clone(&self) -> PortableResolutionKey
fn clone(&self) -> PortableResolutionKey
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 PortableResolutionKey
impl Debug for PortableResolutionKey
Source§impl<'de> Deserialize<'de> for PortableResolutionKey
impl<'de> Deserialize<'de> for PortableResolutionKey
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 Hash for PortableResolutionKey
impl Hash for PortableResolutionKey
Source§impl Ord for PortableResolutionKey
impl Ord for PortableResolutionKey
Source§fn cmp(&self, other: &PortableResolutionKey) -> Ordering
fn cmp(&self, other: &PortableResolutionKey) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for PortableResolutionKey
impl PartialEq for PortableResolutionKey
Source§impl PartialOrd for PortableResolutionKey
impl PartialOrd for PortableResolutionKey
Source§impl Serialize for PortableResolutionKey
impl Serialize for PortableResolutionKey
impl Eq for PortableResolutionKey
impl StructuralPartialEq for PortableResolutionKey
Auto Trait Implementations§
impl Freeze for PortableResolutionKey
impl RefUnwindSafe for PortableResolutionKey
impl Send for PortableResolutionKey
impl Sync for PortableResolutionKey
impl Unpin for PortableResolutionKey
impl UnwindSafe for PortableResolutionKey
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> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
§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.