pub struct VaultManifestProcessor { /* private fields */ }Expand description
CBOR-LD vault manifest processor
Implementations§
Source§impl VaultManifestProcessor
impl VaultManifestProcessor
Sourcepub fn from_volume(volume: &Q42Volume) -> Result<Self, CborLdError>
pub fn from_volume(volume: &Q42Volume) -> Result<Self, CborLdError>
Create new processor from Q42 volume
Sourcepub fn to_cbor_ld(
&self,
manifest: &VaultManifest,
) -> Result<Vec<u8>, CborLdError>
pub fn to_cbor_ld( &self, manifest: &VaultManifest, ) -> Result<Vec<u8>, CborLdError>
Convert vault manifest to CBOR-LD binary format
Sourcepub fn from_cbor_ld(
&self,
cbor_bytes: &[u8],
) -> Result<VaultManifest, CborLdError>
pub fn from_cbor_ld( &self, cbor_bytes: &[u8], ) -> Result<VaultManifest, CborLdError>
Convert CBOR-LD binary to vault manifest
Sourcepub fn to_compact_cbor_ld(
&self,
manifest: &VaultManifest,
) -> Result<Vec<u8>, CborLdError>
pub fn to_compact_cbor_ld( &self, manifest: &VaultManifest, ) -> Result<Vec<u8>, CborLdError>
Create compact CBOR-LD projection for transfer
Sourcepub fn from_compact_cbor_ld(
&self,
cbor_bytes: &[u8],
) -> Result<VaultManifest, CborLdError>
pub fn from_compact_cbor_ld( &self, cbor_bytes: &[u8], ) -> Result<VaultManifest, CborLdError>
Convert from compact CBOR-LD projection
Sourcepub fn validate_manifest(
&self,
manifest: &VaultManifest,
) -> Result<(), CborLdError>
pub fn validate_manifest( &self, manifest: &VaultManifest, ) -> Result<(), CborLdError>
Validate manifest against Q42 lexicon
Sourcepub fn q42_context(&self) -> &Arc<Q42Context>
pub fn q42_context(&self) -> &Arc<Q42Context>
Get Q42 context reference
Auto Trait Implementations§
impl Freeze for VaultManifestProcessor
impl RefUnwindSafe for VaultManifestProcessor
impl Send for VaultManifestProcessor
impl Sync for VaultManifestProcessor
impl Unpin for VaultManifestProcessor
impl UnsafeUnpin for VaultManifestProcessor
impl UnwindSafe for VaultManifestProcessor
Blanket Implementations§
§impl<S, A> Aggregate<Result<S, Error>> for Awhere
A: Aggregate<S>,
impl<S, A> Aggregate<Result<S, Error>> for Awhere
A: Aggregate<S>,
Aggregate shares in an MPC protocol.
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more