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: String
id: String
assertion_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
impl<'de> Deserialize<'de> for Document
impl<'de> Deserialize<'de> for Document
pub fn deserialize<__D>(
__deserializer: __D
) -> Result<Document, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
pub fn deserialize<__D>(
__deserializer: __D
) -> Result<Document, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
pub fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
pub fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more