pub struct LinkDescription {
pub href: String,
pub rel: Option<String>,
pub method: Option<LinkMethod>,
}
Expand description
A HTOAES link
Fields§
§href: String
The complete target URL.
rel: Option<String>
The link relation type, which serves as an ID for a link that unambiguously describes the semantics of the link.
method: Option<LinkMethod>
The HTTP method required to make the related call.
Trait Implementations§
Source§impl Clone for LinkDescription
impl Clone for LinkDescription
Source§fn clone(&self) -> LinkDescription
fn clone(&self) -> LinkDescription
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for LinkDescription
impl Debug for LinkDescription
Source§impl Default for LinkDescription
impl Default for LinkDescription
Source§fn default() -> LinkDescription
fn default() -> LinkDescription
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for LinkDescription
impl<'de> Deserialize<'de> for LinkDescription
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
Source§impl PartialEq for LinkDescription
impl PartialEq for LinkDescription
Source§impl Serialize for LinkDescription
impl Serialize for LinkDescription
impl Eq for LinkDescription
impl StructuralPartialEq for LinkDescription
Auto Trait Implementations§
impl Freeze for LinkDescription
impl RefUnwindSafe for LinkDescription
impl Send for LinkDescription
impl Sync for LinkDescription
impl Unpin for LinkDescription
impl UnwindSafe for LinkDescription
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