Struct paypal_rust::resources::link_description::LinkDescription
source · 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