Struct stripe::TerminalLocation
source · pub struct TerminalLocation {
pub id: TerminalLocationId,
pub address: Option<Address>,
pub configuration_overrides: Option<String>,
pub deleted: bool,
pub display_name: Option<String>,
pub livemode: Option<bool>,
pub metadata: Option<Metadata>,
}
Expand description
The resource representing a Stripe “TerminalLocationLocation”.
For more details see https://stripe.com/docs/api/terminal/locations/object
Fields§
§id: TerminalLocationId
Unique identifier for the object.
address: Option<Address>
§configuration_overrides: Option<String>
The ID of a configuration that will be used to customize all readers in this location.
deleted: bool
§display_name: Option<String>
The display name of the location.
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.
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.
Implementations§
source§impl TerminalLocation
impl TerminalLocation
sourcepub fn list(
client: &Client,
params: &ListTerminalLocations<'_>
) -> Response<List<TerminalLocation>>
pub fn list( client: &Client, params: &ListTerminalLocations<'_> ) -> Response<List<TerminalLocation>>
Returns a list of Location
objects.
sourcepub fn create(
client: &Client,
params: CreateTerminalLocation<'_>
) -> Response<TerminalLocation>
pub fn create( client: &Client, params: CreateTerminalLocation<'_> ) -> Response<TerminalLocation>
Creates a new Location
object.
For further details, including which address fields are required in each country, see the Manage locations guide.
Trait Implementations§
source§impl Clone for TerminalLocation
impl Clone for TerminalLocation
source§fn clone(&self) -> TerminalLocation
fn clone(&self) -> TerminalLocation
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 Debug for TerminalLocation
impl Debug for TerminalLocation
source§impl Default for TerminalLocation
impl Default for TerminalLocation
source§fn default() -> TerminalLocation
fn default() -> TerminalLocation
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for TerminalLocation
impl<'de> Deserialize<'de> for TerminalLocation
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>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Object for TerminalLocation
impl Object for TerminalLocation
Auto Trait Implementations§
impl Freeze for TerminalLocation
impl RefUnwindSafe for TerminalLocation
impl Send for TerminalLocation
impl Sync for TerminalLocation
impl Unpin for TerminalLocation
impl UnwindSafe for TerminalLocation
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