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: Metadata,
    pub serial_number: Option<String>,
    pub status: Option<String>,
}
Expand description

The resource representing a Stripe “TerminalReaderReader”.

Fields

id: TerminalReaderId

Unique identifier for the object.

action: Option<TerminalReaderReaderResourceReaderAction>

The most recent action performed by the reader.

deleted: booldevice_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: 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<String>

The networking status of the reader.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

Deserialize this value from the given Serde deserializer. Read more

The canonical id type for this object.

The id of the object.

The object’s type, typically represented in wire format as the object property.

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Should always be Self

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more