Struct paypal_rs::HeaderParams
source · [−]pub struct HeaderParams {
pub merchant_payer_id: Option<String>,
pub client_metadata_id: Option<String>,
pub partner_attribution_id: Option<String>,
pub request_id: Option<String>,
pub content_type: Option<String>,
}
Expand description
Represents the optional header values used on paypal requests.
https://developer.paypal.com/docs/api/reference/api-requests/#paypal-auth-assertion
Fields
merchant_payer_id: Option<String>
The merchant payer id used on PayPal-Auth-Assertion
client_metadata_id: Option<String>
Verifies that the payment originates from a valid, user-consented device and application. Reduces fraud and decreases declines. Transactions that do not include a client metadata ID are not eligible for PayPal Seller Protection.
partner_attribution_id: Option<String>
Identifies the caller as a PayPal partner. To receive revenue attribution, specify a unique build notation (BN) code. BN codes provide tracking on all transactions that originate or are associated with a particular partner.
request_id: Option<String>
Contains a unique user-generated ID that the server stores for a period of time. Use this header to enforce idempotency on REST API POST calls. You can make these calls any number of times without concern that the server creates or completes an action on a resource more than once. You can retry calls that fail with network timeouts or the HTTP 500 status code. You can retry calls for as long as the server stores the ID.
content_type: Option<String>
The media type. Required for operations with a request body.
Trait Implementations
sourceimpl Clone for HeaderParams
impl Clone for HeaderParams
sourcefn clone(&self) -> HeaderParams
fn clone(&self) -> HeaderParams
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for HeaderParams
impl Debug for HeaderParams
sourceimpl Default for HeaderParams
impl Default for HeaderParams
sourcefn default() -> HeaderParams
fn default() -> HeaderParams
Returns the “default value” for a type. Read more
Auto Trait Implementations
impl RefUnwindSafe for HeaderParams
impl Send for HeaderParams
impl Sync for HeaderParams
impl Unpin for HeaderParams
impl UnwindSafe for HeaderParams
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more