Struct noosphere_core::data::SphereIpld
source · pub struct SphereIpld {
pub identity: String,
pub links: 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: StringA DID that is the identity of the originating key that owns the sphere
links: Option<Cid>The public links for the sphere (LinksIpld)
sealed: Option<Cid>The non-public content of the sphere (SealedIpld)
Authorization and revocation state for non-owner keys (AuthorizationIpld)
Trait Implementations
sourceimpl Clone for SphereIpld
impl Clone for SphereIpld
sourcefn clone(&self) -> SphereIpld
fn clone(&self) -> SphereIpld
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresourceimpl Debug for SphereIpld
impl Debug for SphereIpld
sourceimpl Default for SphereIpld
impl Default for SphereIpld
sourcefn default() -> SphereIpld
fn default() -> SphereIpld
Returns the “default value” for a type. Read more
sourceimpl<'de> Deserialize<'de> for SphereIpld
impl<'de> Deserialize<'de> for SphereIpld
sourcefn 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
sourceimpl PartialEq<SphereIpld> for SphereIpld
impl PartialEq<SphereIpld> for SphereIpld
sourcefn eq(&self, other: &SphereIpld) -> bool
fn eq(&self, other: &SphereIpld) -> bool
sourceimpl Serialize for SphereIpld
impl Serialize for SphereIpld
sourceimpl 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,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Self: '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,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Self: Sync + '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,
'life0: 'async_trait,
'life1: 'async_trait,
Self: Sync + '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,
'life0: 'async_trait,
'life1: 'async_trait,
Self: Send + '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
sourceimpl<T> Base64Encode for Twhere
T: DagJson,
impl<T> Base64Encode for Twhere
T: DagJson,
fn jwt_base64_encode(&self) -> Result<String, Error>
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more