#[non_exhaustive]pub struct RequestPaymentConfigurationBuilder { /* private fields */ }
Expand description
A builder for RequestPaymentConfiguration
.
Implementations§
source§impl RequestPaymentConfigurationBuilder
impl RequestPaymentConfigurationBuilder
sourcepub fn payer(self, input: Payer) -> Self
pub fn payer(self, input: Payer) -> Self
Specifies who pays for the download and request fees.
This field is required.sourcepub fn set_payer(self, input: Option<Payer>) -> Self
pub fn set_payer(self, input: Option<Payer>) -> Self
Specifies who pays for the download and request fees.
sourcepub fn get_payer(&self) -> &Option<Payer>
pub fn get_payer(&self) -> &Option<Payer>
Specifies who pays for the download and request fees.
sourcepub fn build(self) -> Result<RequestPaymentConfiguration, BuildError>
pub fn build(self) -> Result<RequestPaymentConfiguration, BuildError>
Consumes the builder and constructs a RequestPaymentConfiguration
.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for RequestPaymentConfigurationBuilder
impl Clone for RequestPaymentConfigurationBuilder
source§fn clone(&self) -> RequestPaymentConfigurationBuilder
fn clone(&self) -> RequestPaymentConfigurationBuilder
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 Default for RequestPaymentConfigurationBuilder
impl Default for RequestPaymentConfigurationBuilder
source§fn default() -> RequestPaymentConfigurationBuilder
fn default() -> RequestPaymentConfigurationBuilder
Returns the “default value” for a type. Read more
source§impl PartialEq for RequestPaymentConfigurationBuilder
impl PartialEq for RequestPaymentConfigurationBuilder
source§fn eq(&self, other: &RequestPaymentConfigurationBuilder) -> bool
fn eq(&self, other: &RequestPaymentConfigurationBuilder) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.impl StructuralPartialEq for RequestPaymentConfigurationBuilder
Auto Trait Implementations§
impl Freeze for RequestPaymentConfigurationBuilder
impl RefUnwindSafe for RequestPaymentConfigurationBuilder
impl Send for RequestPaymentConfigurationBuilder
impl Sync for RequestPaymentConfigurationBuilder
impl Unpin for RequestPaymentConfigurationBuilder
impl UnwindSafe for RequestPaymentConfigurationBuilder
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Creates a shared type from an unshared type.