Struct stripe::CreateTerminalReader
source · pub struct CreateTerminalReader<'a> {
pub expand: &'a [&'a str],
pub label: Option<&'a str>,
pub location: Option<&'a str>,
pub metadata: Option<Metadata>,
pub registration_code: &'a str,
}
Expand description
The parameters for TerminalReader::create
.
Fields§
§expand: &'a [&'a str]
Specifies which fields in the response should be expanded.
label: Option<&'a str>
Custom label given to the reader for easier identification.
If no label is specified, the registration code will be used.
location: Option<&'a str>
The location to assign the reader to.
metadata: Option<Metadata>
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
.
registration_code: &'a str
A code generated by the reader used for registering to an account.
Implementations§
Trait Implementations§
source§impl<'a> Clone for CreateTerminalReader<'a>
impl<'a> Clone for CreateTerminalReader<'a>
source§fn clone(&self) -> CreateTerminalReader<'a>
fn clone(&self) -> CreateTerminalReader<'a>
Returns a copy 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<'a> Debug for CreateTerminalReader<'a>
impl<'a> Debug for CreateTerminalReader<'a>
Auto Trait Implementations§
impl<'a> RefUnwindSafe for CreateTerminalReader<'a>
impl<'a> Send for CreateTerminalReader<'a>
impl<'a> Sync for CreateTerminalReader<'a>
impl<'a> Unpin for CreateTerminalReader<'a>
impl<'a> UnwindSafe for CreateTerminalReader<'a>
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