pub struct ProjectInstanceId(/* private fields */);Expand description
Stable identity of one ProjectAtlas index across supported moves and upgrades.
Implementations§
Source§impl ProjectInstanceId
impl ProjectInstanceId
Sourcepub fn from_bytes(bytes: [u8; 16]) -> Result<Self, GraphContractError>
pub fn from_bytes(bytes: [u8; 16]) -> Result<Self, GraphContractError>
Construct a project identity from its durable 16-byte representation.
§Errors
Returns an error for the all-zero sentinel.
Trait Implementations§
Source§impl Clone for ProjectInstanceId
impl Clone for ProjectInstanceId
Source§fn clone(&self) -> ProjectInstanceId
fn clone(&self) -> ProjectInstanceId
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 ProjectInstanceId
impl Debug for ProjectInstanceId
Source§impl<'de> Deserialize<'de> for ProjectInstanceId
impl<'de> Deserialize<'de> for ProjectInstanceId
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 Display for ProjectInstanceId
impl Display for ProjectInstanceId
Source§impl Hash for ProjectInstanceId
impl Hash for ProjectInstanceId
Source§impl Ord for ProjectInstanceId
impl Ord for ProjectInstanceId
Source§fn cmp(&self, other: &ProjectInstanceId) -> Ordering
fn cmp(&self, other: &ProjectInstanceId) -> 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 ProjectInstanceId
impl PartialEq for ProjectInstanceId
Source§impl PartialOrd for ProjectInstanceId
impl PartialOrd for ProjectInstanceId
Source§impl Serialize for ProjectInstanceId
impl Serialize for ProjectInstanceId
Source§impl TryFrom<&str> for ProjectInstanceId
impl TryFrom<&str> for ProjectInstanceId
Source§impl TryFrom<String> for ProjectInstanceId
impl TryFrom<String> for ProjectInstanceId
impl Copy for ProjectInstanceId
impl Eq for ProjectInstanceId
impl StructuralPartialEq for ProjectInstanceId
Auto Trait Implementations§
impl Freeze for ProjectInstanceId
impl RefUnwindSafe for ProjectInstanceId
impl Send for ProjectInstanceId
impl Sync for ProjectInstanceId
impl Unpin for ProjectInstanceId
impl UnwindSafe for ProjectInstanceId
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.