paypal_rust/resources/
link_description.rs

1use crate::resources::enums::http_method::HttpMethod;
2use serde::{Deserialize, Serialize};
3
4#[derive(Clone, Debug, Default, Deserialize, Serialize)]
5pub struct LinkDescription {
6    /// The complete target URL. To make the related call, combine the method with this URI Template-formatted link. For pre-processing,
7    /// include the $, (, and ) characters. The href is the key HATEOAS component that links a completed call with a subsequent call.
8    pub href: String,
9
10    /// The link relation type, which serves as an ID for a link that unambiguously describes the semantics of the link. See Link Relations.
11    pub rel: String,
12
13    /// The HTTP method. If present, use this method to make a request to the target URL. If absent, the default method is GET.
14    pub method: Option<HttpMethod>,
15}