Struct ddoresolver_rs::Document
source · [−]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
sourceimpl DdoParser for Document
impl DdoParser for Document
sourcefn find_key_agreement(&self, pattern: &str) -> Option<KeyAgreement>
fn find_key_agreement(&self, pattern: &str) -> Option<KeyAgreement>
Pattern finding method to resolve KeyAgreement
based on provided
pattern
. Returns None
if no matching result found instead of error. Read more
sourcefn find_public_key_for_curve(&self, curve: &str) -> Option<Vec<u8>>
fn find_public_key_for_curve(&self, curve: &str) -> Option<Vec<u8>>
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
sourceimpl<'de> Deserialize<'de> for Document
impl<'de> Deserialize<'de> for Document
sourcefn deserialize<__D>(
__deserializer: __D
) -> Result<Document, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
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
sourceimpl Serialize for Document
impl Serialize for Document
sourcefn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
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
impl StructuralPartialEq for Document
Auto Trait Implementations
impl RefUnwindSafe for Document
impl Send for Document
impl Sync for Document
impl Unpin for Document
impl UnwindSafe for Document
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more