Struct noosphere_core::data::IdentityIpld
source · pub struct IdentityIpld {
pub did: Did,
pub link_record: Option<Link<LinkRecord>>,
}Expand description
An IdentityIpld represents an entry in a user’s pet name address book. It is intended to be associated with a human readable name, and enables the user to resolve the name to a DID. Eventually the DID will be resolved by some mechanism to a UCAN, so this struct also records the last resolved value if one has ever been resolved.
Fields§
§did: Did§link_record: Option<Link<LinkRecord>>Implementations§
source§impl IdentityIpld
impl IdentityIpld
sourcepub async fn link_record<S: UcanJwtStore>(
&self,
store: &S
) -> Option<LinkRecord>
pub async fn link_record<S: UcanJwtStore>( &self, store: &S ) -> Option<LinkRecord>
If there is a LinkRecord for this IdentityIpld, attempt to retrieve it from storage
Trait Implementations§
source§impl Clone for IdentityIpld
impl Clone for IdentityIpld
source§fn clone(&self) -> IdentityIpld
fn clone(&self) -> IdentityIpld
Returns a copy 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 IdentityIpld
impl Debug for IdentityIpld
source§impl<'de> Deserialize<'de> for IdentityIpld
impl<'de> Deserialize<'de> for IdentityIpld
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 IdentityIpld
impl Hash for IdentityIpld
source§impl PartialEq<IdentityIpld> for IdentityIpld
impl PartialEq<IdentityIpld> for IdentityIpld
source§fn eq(&self, other: &IdentityIpld) -> bool
fn eq(&self, other: &IdentityIpld) -> bool
This method tests for
self and other values to be equal, and is used
by ==.