pub struct RetrievePromotionCode { /* private fields */ }Expand description
Retrieves the promotion code with the given ID.
In order to retrieve a promotion code by the customer-facing code use list with the desired code.
Implementations§
Source§impl RetrievePromotionCode
impl RetrievePromotionCode
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 RetrievePromotionCode
impl Clone for RetrievePromotionCode
Source§fn clone(&self) -> RetrievePromotionCode
fn clone(&self) -> RetrievePromotionCode
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 RetrievePromotionCode
impl Debug for RetrievePromotionCode
Source§impl Serialize for RetrievePromotionCode
impl Serialize for RetrievePromotionCode
Source§impl StripeRequest for RetrievePromotionCode
impl StripeRequest for RetrievePromotionCode
Source§type Output = PromotionCode
type Output = PromotionCode
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 RetrievePromotionCode
impl RefUnwindSafe for RetrievePromotionCode
impl Send for RetrievePromotionCode
impl Sync for RetrievePromotionCode
impl Unpin for RetrievePromotionCode
impl UnsafeUnpin for RetrievePromotionCode
impl UnwindSafe for RetrievePromotionCode
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