Struct stripe::generated::terminal::terminal_reader::TerminalReader
source · pub struct TerminalReader {
pub id: TerminalReaderId,
pub action: Option<TerminalReaderReaderResourceReaderAction>,
pub deleted: bool,
pub device_sw_version: Option<String>,
pub device_type: Option<TerminalReaderDeviceType>,
pub ip_address: Option<String>,
pub label: Option<String>,
pub livemode: Option<bool>,
pub location: Option<Expandable<TerminalLocation>>,
pub metadata: Option<Metadata>,
pub serial_number: Option<String>,
pub status: Option<TerminalReaderStatus>,
}
Expand description
The resource representing a Stripe “TerminalReaderReader”.
For more details see https://stripe.com/docs/api/terminal/readers/object
Fields§
§id: TerminalReaderId
Unique identifier for the object.
action: Option<TerminalReaderReaderResourceReaderAction>
The most recent action performed by the reader.
deleted: bool
§device_sw_version: Option<String>
The current software version of the reader.
device_type: Option<TerminalReaderDeviceType>
Type of reader, one of bbpos_wisepad3
, stripe_m2
, bbpos_chipper2x
, bbpos_wisepos_e
, verifone_P400
, or simulated_wisepos_e
.
ip_address: Option<String>
The local IP address of the reader.
label: Option<String>
Custom label given to the reader for easier identification.
livemode: Option<bool>
Has the value true
if the object exists in live mode or the value false
if the object exists in test mode.
location: Option<Expandable<TerminalLocation>>
The location identifier of the reader.
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.
serial_number: Option<String>
Serial number of the reader.
status: Option<TerminalReaderStatus>
The networking status of the reader.
Implementations§
source§impl TerminalReader
impl TerminalReader
sourcepub fn list(
client: &Client,
params: &ListTerminalReaders<'_>,
) -> Response<List<TerminalReader>>
pub fn list( client: &Client, params: &ListTerminalReaders<'_>, ) -> Response<List<TerminalReader>>
Returns a list of Reader
objects.
sourcepub fn create(
client: &Client,
params: CreateTerminalReader<'_>,
) -> Response<TerminalReader>
pub fn create( client: &Client, params: CreateTerminalReader<'_>, ) -> Response<TerminalReader>
Creates a new Reader
object.
Trait Implementations§
source§impl Clone for TerminalReader
impl Clone for TerminalReader
source§fn clone(&self) -> TerminalReader
fn clone(&self) -> TerminalReader
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for TerminalReader
impl Debug for TerminalReader
source§impl Default for TerminalReader
impl Default for TerminalReader
source§fn default() -> TerminalReader
fn default() -> TerminalReader
source§impl<'de> Deserialize<'de> for TerminalReader
impl<'de> Deserialize<'de> for TerminalReader
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
source§impl Object for TerminalReader
impl Object for TerminalReader
Auto Trait Implementations§
impl Freeze for TerminalReader
impl RefUnwindSafe for TerminalReader
impl Send for TerminalReader
impl Sync for TerminalReader
impl Unpin for TerminalReader
impl UnwindSafe for TerminalReader
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)