pub struct Link {
pub rel: String,
pub href: Option<String>,
pub template: Option<String>,
pub kind: Option<String>,
}Expand description
The webfinger Link type
All links have a rel the determines what the link is describing, most have a type that adds
some more context, and a href to point to, or contain the data.
In some cases, the Link can have a rel and a template and nothing else.
This type can be serialized and deserialized
Fields§
§rel: String§href: Option<String>§template: Option<String>§kind: Option<String>renamed to type via serde
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Link
impl<'de> Deserialize<'de> for Link
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for Link
impl RefUnwindSafe for Link
impl Send for Link
impl Sync for Link
impl Unpin for Link
impl UnwindSafe for Link
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more