pub struct RetrieveInvoiceRenderingTemplate { /* private fields */ }
Expand description
Retrieves an invoice rendering template with the given ID. It by default returns the latest version of the template. Optionally, specify a version to see previous versions.
Implementations§
Source§impl RetrieveInvoiceRenderingTemplate
impl RetrieveInvoiceRenderingTemplate
Sourcepub fn new(template: impl Into<InvoiceRenderingTemplateId>) -> Self
pub fn new(template: impl Into<InvoiceRenderingTemplateId>) -> Self
Construct a new RetrieveInvoiceRenderingTemplate
.
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.
pub fn version(self, version: impl Into<i64>) -> Self
Source§impl RetrieveInvoiceRenderingTemplate
impl RetrieveInvoiceRenderingTemplate
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 RetrieveInvoiceRenderingTemplate
impl Clone for RetrieveInvoiceRenderingTemplate
Source§fn clone(&self) -> RetrieveInvoiceRenderingTemplate
fn clone(&self) -> RetrieveInvoiceRenderingTemplate
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 StripeRequest for RetrieveInvoiceRenderingTemplate
impl StripeRequest for RetrieveInvoiceRenderingTemplate
Source§type Output = InvoiceRenderingTemplate
type Output = InvoiceRenderingTemplate
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 RetrieveInvoiceRenderingTemplate
impl RefUnwindSafe for RetrieveInvoiceRenderingTemplate
impl Send for RetrieveInvoiceRenderingTemplate
impl Sync for RetrieveInvoiceRenderingTemplate
impl Unpin for RetrieveInvoiceRenderingTemplate
impl UnwindSafe for RetrieveInvoiceRenderingTemplate
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