Struct noosphere_core::view::SphereRevision
source · pub struct SphereRevision<S: BlockStore> {
pub sphere_identity: Did,
pub store: S,
pub memo: MemoIpld,
}Expand description
A SphereRevision represents a new, unsigned version of a Sphere. A
SphereRevision must be signed as a final step before the Link
Fields§
§sphere_identity: DidThe Did of the sphere that this revision corresponds to
store: SA BlockStore that contains blocks assocaited with the sphere that this revision corresponds to
memo: MemoIpldThe unsigned memo that wraps the root of the [SphereIpld] for this sphere revision
Implementations§
source§impl<S: BlockStore> SphereRevision<S>
impl<S: BlockStore> SphereRevision<S>
sourcepub async fn sign<Credential: KeyMaterial>(
&mut self,
credential: &Credential,
authorization: Option<&Authorization>
) -> Result<Link<MemoIpld>>
pub async fn sign<Credential: KeyMaterial>( &mut self, credential: &Credential, authorization: Option<&Authorization> ) -> Result<Link<MemoIpld>>
Sign the SphereRevision with the provided credential and return the
Link
Trait Implementations§
Auto Trait Implementations§
impl<S> RefUnwindSafe for SphereRevision<S>where S: RefUnwindSafe,
impl<S> Send for SphereRevision<S>
impl<S> Sync for SphereRevision<S>
impl<S> Unpin for SphereRevision<S>where S: Unpin,
impl<S> UnwindSafe for SphereRevision<S>where S: UnwindSafe,
Blanket Implementations§
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