Struct didcomm_rs::Document[]

pub struct Document {
    pub context: String,
    pub id: String,
    pub assertion_method: Option<Vec<String, Global>>,
    pub authentication: Option<Vec<String, Global>>,
    pub capability_delegation: Option<Vec<String, Global>>,
    pub capability_invocation: Option<Vec<String, Global>>,
    pub key_agreement: Option<Vec<String, Global>>,
    pub verification_method: Vec<VerificationMethod, Global>,
}

Fields

context: Stringid: Stringassertion_method: Option<Vec<String, Global>>authentication: Option<Vec<String, Global>>capability_delegation: Option<Vec<String, Global>>capability_invocation: Option<Vec<String, Global>>key_agreement: Option<Vec<String, Global>>verification_method: Vec<VerificationMethod, Global>

Trait Implementations

Pattern finding method to resolve KeyAgreement based on provided pattern. Returns None if no matching result found instead of error. Read more

Searches all crypto matherial in the document for particular curve and returns FIRST! match for particular curve, which can be partial pattern. Returns None if no matching result found instead of error. Read more

Method similar to find_key_agreement, but returns key ID instead of the key itself. Returns None if no matching result found instead of error. Read more

Resolve controller for specified curve if it’s present in VerificationMethods list Returns None if no matching curve found. Read more

Formats the value using the given formatter. Read more

Deserialize this value from the given Serde deserializer. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The alignment of pointer.

The type for initializers.

Initializes a with the given initializer. Read more

Dereferences the given pointer. Read more

Mutably dereferences the given pointer. Read more

Drops the object pointed to by the given pointer. Read more

Should always be Self

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.