pub struct ApiLink {
pub rel: String,
pub href: String,
pub method: Option<String>,
pub title: Option<String>,
}Expand description
A hypermedia link (Hydra-style)
Fields§
§rel: StringRelation type (e.g., “self”, “next”, “parent”, “children”)
href: StringTarget URI or path
method: Option<String>HTTP method (GET, POST, etc.)
title: Option<String>Human-readable title
Trait Implementations§
Source§impl<'de> Deserialize<'de> for ApiLink
impl<'de> Deserialize<'de> for ApiLink
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 ApiLink
impl RefUnwindSafe for ApiLink
impl Send for ApiLink
impl Sync for ApiLink
impl Unpin for ApiLink
impl UnsafeUnpin for ApiLink
impl UnwindSafe for ApiLink
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