pub struct Link {
pub rel: String,
pub href: String,
pub method: Option<String>,
pub title: Option<String>,
}Expand description
HATEOAS link for hypermedia-driven API navigation.
Links allow clients to discover available actions and navigate the API without hardcoded URLs.
Fields§
§rel: StringLink relation type (e.g., “self”, “next”, “prev”, “related”)
href: StringTarget URI
method: Option<String>HTTP method for this link (default: GET)
title: Option<String>Human-readable title
Implementations§
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 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