[][src]Enum didkit::Content

pub enum Content {
    DIDDocument(Document),
    URL(String),
    Object(Resource),
    Data(Vec<u8, Global>),
    Null,
}

A resource returned by DID URL dereferencing

Variants

DIDDocument(Document)
URL(String)
Object(Resource)
Data(Vec<u8, Global>)
Null

Implementations

impl Content[src]

pub fn into_vec(self) -> Result<Vec<u8, Global>, Error>[src]

Trait Implementations

impl Clone for Content[src]

impl Debug for Content[src]

impl PartialEq<Content> for Content[src]

impl Serialize for Content[src]

impl StructuralPartialEq for Content[src]

Auto Trait Implementations

impl RefUnwindSafe for Content[src]

impl Send for Content[src]

impl Sync for Content[src]

impl Unpin for Content[src]

impl UnwindSafe for Content[src]

Blanket Implementations

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

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

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

impl<'a, T> Desc<'a, T> for T

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

impl<T> Instrument for T[src]

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

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToOwned for T

type Owned = T

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<V, T> VZip<V> for T where
    V: MultiLane<T>,