pub struct VaultManifest {
pub context: String,
pub manifest_type: String,
pub id: String,
pub created: String,
pub modified: String,
pub vocabulary: VocabularyLD,
pub collections: Vec<CollectionLD>,
pub capabilities: Vec<CapabilityLD>,
pub did_q42: Option<String>,
pub semantic_context: Option<u64>,
}Expand description
Vault manifest structure with CBOR-LD support
Fields§
§context: String§manifest_type: String§id: String§created: String§modified: String§vocabulary: VocabularyLD§collections: Vec<CollectionLD>§capabilities: Vec<CapabilityLD>§did_q42: Option<String>§semantic_context: Option<u64>Implementations§
Source§impl VaultManifest
impl VaultManifest
Sourcepub fn add_collection(&mut self, collection: CollectionLD)
pub fn add_collection(&mut self, collection: CollectionLD)
Add collection to manifest
Sourcepub fn add_capability(&mut self, capability: CapabilityLD)
pub fn add_capability(&mut self, capability: CapabilityLD)
Add capability to manifest
Sourcepub fn set_did_q42(&mut self, did_q42: String)
pub fn set_did_q42(&mut self, did_q42: String)
Set DID Q42 identifier
Sourcepub fn set_semantic_context(&mut self, semantic_context: u64)
pub fn set_semantic_context(&mut self, semantic_context: u64)
Set semantic context
Trait Implementations§
Source§impl Clone for VaultManifest
impl Clone for VaultManifest
Source§fn clone(&self) -> VaultManifest
fn clone(&self) -> VaultManifest
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 VaultManifest
impl Debug for VaultManifest
Source§impl<'de> Deserialize<'de> for VaultManifest
impl<'de> Deserialize<'de> for VaultManifest
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
Auto Trait Implementations§
impl Freeze for VaultManifest
impl RefUnwindSafe for VaultManifest
impl Send for VaultManifest
impl Sync for VaultManifest
impl Unpin for VaultManifest
impl UnsafeUnpin for VaultManifest
impl UnwindSafe for VaultManifest
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§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