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
pub async fn new<S>(identity: &Did, store: &mut S) -> Result<SphereIpld>where S: BlockStore,
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<SphereIpld> for SphereIpld
impl PartialEq<SphereIpld> 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 ==.