Struct noosphere_core::data::SphereIpld
source · pub struct SphereIpld {
pub identity: Did,
pub content: Link<ContentIpld>,
pub address_book: Link<AddressBookIpld>,
pub authority: Link<AuthorityIpld>,
pub private: Option<Cid>,
}Expand description
The root of the sphere, containing pointers to public details such as names and links, as well as “sealed” (private) data. While public details are accessible to all, sealed data is encrypted at rest and only accessible to the user who owns the sphere.
Fields§
§identity: DidA DID that is the identity of the originating key that owns the sphere
content: Link<ContentIpld>The public links for the sphere
address_book: Link<AddressBookIpld>The public pet names for the sphere
Authorization and revocation state for non-owner keys
private: Option<Cid>The non-public content of the sphere
Implementations§
source§impl SphereIpld
impl SphereIpld
sourcepub async fn new<S>(identity: &Did, store: &mut S) -> Result<SphereIpld>where
S: BlockStore,
pub async fn new<S>(identity: &Did, store: &mut S) -> Result<SphereIpld>where S: BlockStore,
Initialize a new, empty SphereIpld with a given Did sphere identity.
Trait Implementations§
source§impl Clone for SphereIpld
impl Clone for SphereIpld
source§fn clone(&self) -> SphereIpld
fn clone(&self) -> SphereIpld
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 SphereIpld
impl Debug for SphereIpld
source§impl<'de> Deserialize<'de> for SphereIpld
impl<'de> Deserialize<'de> for SphereIpld
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 PartialEq for SphereIpld
impl PartialEq for SphereIpld
source§fn eq(&self, other: &SphereIpld) -> bool
fn eq(&self, other: &SphereIpld) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl Serialize for SphereIpld
impl Serialize for SphereIpld
impl Eq for SphereIpld
impl StructuralEq for SphereIpld
impl StructuralPartialEq for SphereIpld
Auto Trait Implementations§
impl RefUnwindSafe for SphereIpld
impl Send for SphereIpld
impl Sync for SphereIpld
impl Unpin for SphereIpld
impl UnwindSafe for SphereIpld
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.