pub struct Jrd {
pub subject: Option<String>,
pub aliases: Vec<String>,
pub properties: BTreeMap<String, Option<String>>,
pub links: Vec<Link>,
}Expand description
A JSON Resource Descriptor: WebFinger’s answer.
Fields§
§subject: Option<String>The URI of the entity described, which may differ from the one asked about (a server is allowed to answer about the canonical form).
aliases: Vec<String>Other URIs that name the same entity.
properties: BTreeMap<String, Option<String>>Name/value pairs about the subject. Values are nullable per the spec.
links: Vec<Link>The typed links, which are the point of the document.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Jrd
impl<'de> Deserialize<'de> for Jrd
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
impl Eq for Jrd
impl StructuralPartialEq for Jrd
Auto Trait Implementations§
impl Freeze for Jrd
impl RefUnwindSafe for Jrd
impl Send for Jrd
impl Sync for Jrd
impl Unpin for Jrd
impl UnsafeUnpin for Jrd
impl UnwindSafe for Jrd
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