pub struct SetReaderDisplayTerminalReader { /* private fields */ }Expand description
Sets the reader display to show cart details.
Implementations§
Source§impl SetReaderDisplayTerminalReader
impl SetReaderDisplayTerminalReader
Sourcepub fn new(
reader: impl Into<TerminalReaderId>,
type_: impl Into<SetReaderDisplayTerminalReaderType>,
) -> Self
pub fn new( reader: impl Into<TerminalReaderId>, type_: impl Into<SetReaderDisplayTerminalReaderType>, ) -> Self
Construct a new SetReaderDisplayTerminalReader.
Sourcepub fn cart(self, cart: impl Into<SetReaderDisplayTerminalReaderCart>) -> Self
pub fn cart(self, cart: impl Into<SetReaderDisplayTerminalReaderCart>) -> Self
Cart details to display on the reader screen, including line items, amounts, and currency.
Source§impl SetReaderDisplayTerminalReader
impl SetReaderDisplayTerminalReader
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 SetReaderDisplayTerminalReader
impl Clone for SetReaderDisplayTerminalReader
Source§fn clone(&self) -> SetReaderDisplayTerminalReader
fn clone(&self) -> SetReaderDisplayTerminalReader
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 StripeRequest for SetReaderDisplayTerminalReader
impl StripeRequest for SetReaderDisplayTerminalReader
Source§type Output = TerminalReader
type Output = TerminalReader
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 SetReaderDisplayTerminalReader
impl RefUnwindSafe for SetReaderDisplayTerminalReader
impl Send for SetReaderDisplayTerminalReader
impl Sync for SetReaderDisplayTerminalReader
impl Unpin for SetReaderDisplayTerminalReader
impl UnsafeUnpin for SetReaderDisplayTerminalReader
impl UnwindSafe for SetReaderDisplayTerminalReader
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