Struct noosphere_core::data::SphereIpld
source · pub struct SphereIpld {
pub identity: Did,
pub links: Option<Cid>,
pub names: Option<Cid>,
pub sealed: Option<Cid>,
pub authorization: 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
links: Option<Cid>The public links for the sphere
names: Option<Cid>The public pet names for the sphere
sealed: Option<Cid>The non-public content of the sphere
Authorization and revocation state for non-owner keys
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 Default for SphereIpld
impl Default for SphereIpld
source§fn default() -> SphereIpld
fn default() -> SphereIpld
Returns the “default value” for a type. Read more
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 ==.source§impl Serialize for SphereIpld
impl Serialize for SphereIpld
source§impl TryBundle for SphereIpld
impl TryBundle for SphereIpld
fn try_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: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn try_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: Sync + 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn try_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 try_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 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> DagJson for Twhere
T: Serialize + DeserializeOwned,
impl<T> DagJson for Twhere
T: Serialize + DeserializeOwned,
source§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,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.