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: DidThe Did of a peer
link_record: Option<Link<LinkRecord>>An optional pointer to a known LinkRecord for the peer
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 for IdentityIpld
impl PartialEq 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 ==.source§impl Serialize for IdentityIpld
impl Serialize for IdentityIpld
source§impl TryBundle for IdentityIpld
impl TryBundle for IdentityIpld
fn extend_bundle<'life0, 'life1, 'life2, 'async_trait, S>( &'life0 self, bundle: &'life1 mut Bundle, store: &'life2 S ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where S: 'async_trait + BlockStore, Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,
fn extend_bundle_with_cid<'life0, 'life1, 'life2, 'async_trait, S>( cid: &'life0 Cid, bundle: &'life1 mut Bundle, store: &'life2 S ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where S: 'async_trait + BlockStore, Self: Send + 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,
fn bundle<'life0, 'life1, 'async_trait, S>( &'life0 self, store: &'life1 S ) -> Pin<Box<dyn Future<Output = Result<Bundle>> + Send + 'async_trait>>where S: 'async_trait + BlockStore, Self: Sync + 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,
fn bundle_with_cid<'life0, 'life1, 'async_trait, S>( cid: &'life0 Cid, store: &'life1 S ) -> Pin<Box<dyn Future<Output = Result<Bundle>> + Send + 'async_trait>>where S: 'async_trait + BlockStore, Self: Send + 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,
impl Eq for IdentityIpld
impl StructuralEq for IdentityIpld
impl StructuralPartialEq for IdentityIpld
Auto Trait Implementations§
impl RefUnwindSafe for IdentityIpld
impl Send for IdentityIpld
impl Sync for IdentityIpld
impl Unpin for IdentityIpld
impl UnwindSafe for IdentityIpld
Blanket Implementations§
source§impl<T> Base64Encode for Twhere
T: DagJson,
impl<T> Base64Encode for Twhere T: DagJson,
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> DagJson for Twhere
T: Serialize + DeserializeOwned,
impl<T> DagJson for Twhere T: Serialize + DeserializeOwned,
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.