pub struct LinkDescription {
pub href: String,
pub rel: String,
pub method: Option<HttpMethod>,
}
Fields§
§href: String
The complete target URL. To make the related call, combine the method with this URI Template-formatted link. For pre-processing, include the $, (, and ) characters. The href is the key HATEOAS component that links a completed call with a subsequent call.
rel: String
The link relation type, which serves as an ID for a link that unambiguously describes the semantics of the link. See Link Relations.
method: Option<HttpMethod>
The HTTP method. If present, use this method to make a request to the target URL. If absent, the default method is GET.
Trait Implementations§
Source§impl Clone for LinkDescription
impl Clone for LinkDescription
Source§fn clone(&self) -> LinkDescription
fn clone(&self) -> LinkDescription
Returns a copy 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
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