Struct paypal_rs::HeaderParamsBuilder
source · [−]pub struct HeaderParamsBuilder { /* private fields */ }
Expand description
Builder for HeaderParams
.
Implementations
sourceimpl HeaderParamsBuilder
impl HeaderParamsBuilder
sourcepub fn merchant_payer_id(&mut self, value: Option<String>) -> &mut Self
pub fn merchant_payer_id(&mut self, value: Option<String>) -> &mut Self
The merchant payer id used on PayPal-Auth-Assertion
sourcepub fn client_metadata_id(&mut self, value: Option<String>) -> &mut Self
pub fn client_metadata_id(&mut self, value: Option<String>) -> &mut Self
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.
sourcepub fn partner_attribution_id(&mut self, value: Option<String>) -> &mut Self
pub fn partner_attribution_id(&mut self, value: Option<String>) -> &mut Self
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.
sourcepub fn request_id(&mut self, value: Option<String>) -> &mut Self
pub fn request_id(&mut self, value: Option<String>) -> &mut Self
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.
sourcepub fn content_type(&mut self, value: Option<String>) -> &mut Self
pub fn content_type(&mut self, value: Option<String>) -> &mut Self
The media type. Required for operations with a request body.
sourcepub fn build(&self) -> Result<HeaderParams, HeaderParamsBuilderError>
pub fn build(&self) -> Result<HeaderParams, HeaderParamsBuilderError>
Trait Implementations
sourceimpl Clone for HeaderParamsBuilder
impl Clone for HeaderParamsBuilder
sourcefn clone(&self) -> HeaderParamsBuilder
fn clone(&self) -> HeaderParamsBuilder
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
Auto Trait Implementations
impl RefUnwindSafe for HeaderParamsBuilder
impl Send for HeaderParamsBuilder
impl Sync for HeaderParamsBuilder
impl Unpin for HeaderParamsBuilder
impl UnwindSafe for HeaderParamsBuilder
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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> 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