pub struct CreateTerminalReader { /* private fields */ }Expand description
Creates a new Reader object.
Implementations§
Source§impl CreateTerminalReader
impl CreateTerminalReader
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 label(self, label: impl Into<String>) -> Self
pub fn label(self, label: impl Into<String>) -> Self
Custom label given to the reader for easier identification. If no label is specified, the registration code will be used.
Sourcepub fn location(self, location: impl Into<String>) -> Self
pub fn location(self, location: impl Into<String>) -> Self
The location to assign the reader to.
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 CreateTerminalReader
impl CreateTerminalReader
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 CreateTerminalReader
impl Clone for CreateTerminalReader
Source§fn clone(&self) -> CreateTerminalReader
fn clone(&self) -> CreateTerminalReader
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 CreateTerminalReader
impl Debug for CreateTerminalReader
Source§impl Serialize for CreateTerminalReader
impl Serialize for CreateTerminalReader
Source§impl StripeRequest for CreateTerminalReader
impl StripeRequest for CreateTerminalReader
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 CreateTerminalReader
impl RefUnwindSafe for CreateTerminalReader
impl Send for CreateTerminalReader
impl Sync for CreateTerminalReader
impl Unpin for CreateTerminalReader
impl UnsafeUnpin for CreateTerminalReader
impl UnwindSafe for CreateTerminalReader
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