[][src]Struct webfinger::Link

pub struct Link {
    pub rel: String,
    pub href: Option<String>,
    pub template: Option<String>,
    pub mime_type: Option<String>,
}

Structure to represent a WebFinger link

Fields

rel: String

Tells what this link represents

href: Option<String>

The actual URL of the link

template: Option<String>

The Link may also contain an URL template, instead of an actual URL

mime_type: Option<String>

The mime-type of this link.

If you fetch this URL, you may want to use this value for the Accept header of your HTTP request.

Trait Implementations

impl PartialEq<Link> for Link[src]

impl Debug for Link[src]

impl Serialize for Link[src]

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

Auto Trait Implementations

impl Sync for Link

impl Send for Link

impl Unpin for Link

impl RefUnwindSafe for Link

impl UnwindSafe for Link

Blanket Implementations

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

impl<T, U> Into<U> for T where
    U: From<T>, 
[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> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<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]

impl<T> Erased for T

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

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