pub struct Link {
pub rel: String,
pub media_type: Option<String>,
pub href: Option<String>,
pub template: Option<String>,
pub titles: BTreeMap<String, String>,
pub properties: BTreeMap<String, Option<String>>,
}Expand description
One link relation in a Jrd.
Fields§
§rel: StringThe relation type: a registered name or a URI. The only required field.
media_type: Option<String>The media type of the target.
href: Option<String>The target URI.
template: Option<String>A URI template, used instead of href when the target is
parameterised (OpenID Connect issuer discovery does this).
titles: BTreeMap<String, String>Human-readable titles, keyed by language tag (or und).
properties: BTreeMap<String, Option<String>>Name/value pairs about this link. Values are nullable per the spec.
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
impl Eq for Link
impl StructuralPartialEq for Link
Auto Trait Implementations§
impl Freeze for Link
impl RefUnwindSafe for Link
impl Send for Link
impl Sync for Link
impl Unpin for Link
impl UnsafeUnpin 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