[][src]Struct did_doc::doc::Document

pub struct Document {
    pub extra: IndexMap<String, Value>,
    // some fields omitted
}

Fields

extra: IndexMap<String, Value>

Methods

impl Document[src]

pub fn new(context: &str, id: &str) -> Self[src]

pub fn context(&self) -> &Vec<String>[src]

pub fn subject(&self) -> &Subject[src]

pub fn public_key(&self) -> &Vec<PublicKey>[src]

pub fn authentication(&self) -> &Vec<PublicKey>[src]

pub fn service(&self) -> &Vec<ServiceEndpoint>[src]

Trait Implementations

impl ToString for Document[src]

impl Debug for Document[src]

impl FromStr for Document[src]

type Err = Void

The associated error which can be returned from parsing.

impl Serialize for Document[src]

impl<'de> Deserialize<'de> for Document[src]

Auto Trait Implementations

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]