[][src]Struct paypal_rs::HeaderParams

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 prefer: Option<Prefer>,
    pub content_type: Option<String>,
}

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.

prefer: Option<Prefer>

The preferred server response upon successful completion of the request.

content_type: Option<String>

The media type. Required for operations with a request body.

Trait Implementations

impl Debug for HeaderParams[src]

impl Default for HeaderParams[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.