pub struct UpdateClimateOrder { /* private fields */ }
Expand description
Updates the specified order by setting the values of the parameters passed.
Implementations§
Source§impl UpdateClimateOrder
impl UpdateClimateOrder
Sourcepub fn new(order: impl Into<ClimateOrderId>) -> Self
pub fn new(order: impl Into<ClimateOrderId>) -> Self
Construct a new UpdateClimateOrder
.
Sourcepub fn beneficiary(self, beneficiary: impl Into<BeneficiaryParams>) -> Self
pub fn beneficiary(self, beneficiary: impl Into<BeneficiaryParams>) -> Self
Publicly sharable reference for the end beneficiary of carbon removal. Assumed to be the Stripe account if not set.
Sourcepub fn expand(self, expand: impl Into<Vec<String>>) -> Self
pub fn expand(self, expand: impl Into<Vec<String>>) -> Self
Specifies which fields in the response should be expanded.
Sourcepub fn metadata(self, metadata: impl Into<HashMap<String, String>>) -> Self
pub fn metadata(self, metadata: impl Into<HashMap<String, String>>) -> Self
Set of key-value pairs that you can attach to an object.
This can be useful for storing additional information about the object in a structured format.
Individual keys can be unset by posting an empty value to them.
All keys can be unset by posting an empty value to metadata
.
Source§impl UpdateClimateOrder
impl UpdateClimateOrder
Sourcepub async fn send<C: StripeClient>(
&self,
client: &C,
) -> Result<<Self as StripeRequest>::Output, C::Err>
pub async fn send<C: StripeClient>( &self, client: &C, ) -> Result<<Self as StripeRequest>::Output, C::Err>
Send the request and return the deserialized response.
Sourcepub fn send_blocking<C: StripeBlockingClient>(
&self,
client: &C,
) -> Result<<Self as StripeRequest>::Output, C::Err>
pub fn send_blocking<C: StripeBlockingClient>( &self, client: &C, ) -> Result<<Self as StripeRequest>::Output, C::Err>
Send the request and return the deserialized response, blocking until completion.
Trait Implementations§
Source§impl Clone for UpdateClimateOrder
impl Clone for UpdateClimateOrder
Source§fn clone(&self) -> UpdateClimateOrder
fn clone(&self) -> UpdateClimateOrder
Returns a duplicate 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 Debug for UpdateClimateOrder
impl Debug for UpdateClimateOrder
Source§impl Serialize for UpdateClimateOrder
impl Serialize for UpdateClimateOrder
Source§impl StripeRequest for UpdateClimateOrder
impl StripeRequest for UpdateClimateOrder
Source§type Output = ClimateOrder
type Output = ClimateOrder
The data returned from the eventual API call.
Source§fn build(&self) -> RequestBuilder
fn build(&self) -> RequestBuilder
Convert the struct into library-agnostic data that can be used by compatible
clients to make API calls.
Source§fn customize(&self) -> CustomizableStripeRequest<Self::Output>
fn customize(&self) -> CustomizableStripeRequest<Self::Output>
Convert to a builder allowing per-request customization.
Auto Trait Implementations§
impl Freeze for UpdateClimateOrder
impl RefUnwindSafe for UpdateClimateOrder
impl Send for UpdateClimateOrder
impl Sync for UpdateClimateOrder
impl Unpin for UpdateClimateOrder
impl UnwindSafe for UpdateClimateOrder
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