pub struct DataIntegrityDocument {
pub context: Option<Context>,
pub types: OneOrMany<String>,
pub properties: BTreeMap<String, Value>,
}Expand description
Any Data-Integrity-compatible document.
The only assumption made by this type is that the JSON-LD @type attribute
is aliased to type, which is common practice (for instance with
Verifiable Credentials).
Note that this type represents an unsecured document.
The type for any Data-Integrity-secured document (with the cryptosuite S)
is DataIntegrity<DataIntegrityDocument, S>.
Fields§
§context: Option<Context>§types: OneOrMany<String>§properties: BTreeMap<String, Value>Trait Implementations§
Source§impl Clone for DataIntegrityDocument
impl Clone for DataIntegrityDocument
Source§fn clone(&self) -> DataIntegrityDocument
fn clone(&self) -> DataIntegrityDocument
Returns a duplicate 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 DataIntegrityDocument
impl Debug for DataIntegrityDocument
Source§impl<'de> Deserialize<'de> for DataIntegrityDocument
impl<'de> Deserialize<'de> for DataIntegrityDocument
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 Expandable for DataIntegrityDocument
impl Expandable for DataIntegrityDocument
type Error = JsonLdError
type Expanded<I, V> = ExpandedDocument<<V as IriVocabulary>::Iri, <V as BlankIdVocabulary>::BlankId> where I: Interpretation, V: VocabularyMut + Vocabulary, V::Iri: LinkedDataResource<I, V> + LinkedDataSubject<I, V>, V::BlankId: LinkedDataResource<I, V> + LinkedDataSubject<I, V>
async fn expand_with<I, V>(
&self,
ld: &mut LdEnvironment<V, I>,
loader: &impl Loader,
) -> Result<Self::Expanded<I, V>, Self::Error>where
I: Interpretation,
V: VocabularyMut,
V::Iri: Clone + Eq + Hash + LinkedDataResource<I, V> + LinkedDataSubject<I, V>,
V::BlankId: Clone + Eq + Hash + LinkedDataResource<I, V> + LinkedDataSubject<I, V>,
async fn expand( &self, loader: &impl Loader, ) -> Result<Self::Expanded<WithGenerator<Blank>, ()>, Self::Error>
Source§impl JsonLdNodeObject for DataIntegrityDocument
impl JsonLdNodeObject for DataIntegrityDocument
fn json_ld_type(&self) -> JsonLdTypes<'_>
Source§impl JsonLdObject for DataIntegrityDocument
impl JsonLdObject for DataIntegrityDocument
Source§impl Serialize for DataIntegrityDocument
impl Serialize for DataIntegrityDocument
Source§impl<E, P> ValidateClaims<E, P> for DataIntegrityDocument
impl<E, P> ValidateClaims<E, P> for DataIntegrityDocument
fn validate_claims(&self, _env: &E, _proof: &P) -> ClaimsValidity
Auto Trait Implementations§
impl Freeze for DataIntegrityDocument
impl RefUnwindSafe for DataIntegrityDocument
impl Send for DataIntegrityDocument
impl Sync for DataIntegrityDocument
impl Unpin for DataIntegrityDocument
impl UnwindSafe for DataIntegrityDocument
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
Source§impl<T> BorrowUnordered for T
impl<T> BorrowUnordered for T
fn as_unordered(&self) -> &Unordered<T>
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<'de, T, C> DeserializeTyped<'de, C> for Twhere
T: Deserialize<'de>,
impl<'de, T, C> DeserializeTyped<'de, C> for Twhere
T: Deserialize<'de>,
fn deserialize_typed<S>(
_: &C,
deserializer: S,
) -> Result<T, <S as Deserializer<'de>>::Error>where
S: Deserializer<'de>,
Source§impl<T, U, C> IntoWithContext<U, C> for Twhere
U: FromWithContext<T, C>,
impl<T, U, C> IntoWithContext<U, C> for Twhere
U: FromWithContext<T, C>,
Source§impl<T> ResourceProvider<()> for T
impl<T> ResourceProvider<()> for T
Source§fn get_resource(&self) -> &()
fn get_resource(&self) -> &()
Returns a reference to the resource of type
T.