pub struct Location {
Show 27 fields pub id: Option<String>, pub name: Option<String>, pub address: Option<Address>, pub timezone: Option<Timezone>, pub capabilities: Option<Vec<LocationCapability>>, pub status: Option<LocationStatus>, pub created_at: Option<DateTime>, pub merchant_id: Option<String>, pub country: Option<Country>, pub language_code: Option<Language>, pub currency: Option<Currency>, pub phone_number: Option<String>, pub business_name: Option<String>, pub type: Option<LocationType>, pub website_url: Option<String>, pub business_hours: Option<BusinessHours>, pub business_email: Option<String>, pub description: Option<String>, pub twitter_username: Option<String>, pub instagram_username: Option<String>, pub facebook_url: Option<String>, pub coordinates: Option<Coordinates>, pub logo_url: Option<String>, pub pos_background_url: Option<String>, pub mcc: Option<String>, pub full_format_logo_url: Option<String>, pub tax_ids: Option<TaxIds>,
}
Expand description

Represents one of a business’ locations.

Fields§

§id: Option<String>

Read only A short generated string of letters and numbers that uniquely identifies this location instance.

Max Length 32

§name: Option<String>

The name of the location. This information appears in the Seller Dashboard as the nickname. A location name must be unique within a seller account.

Max Length 255

§address: Option<Address>

The physical address of the location.

§timezone: Option<Timezone>

The IANA time zone identifier for the time zone of the location. For example, America/Los_Angeles.

§capabilities: Option<Vec<LocationCapability>>

Read only The Square features that are enabled for the location.

§status: Option<LocationStatus>

The status of the location.

§created_at: Option<DateTime>

Read only The time when the location was created, in RFC 3339 format. For more information, see Working with Dates.

§merchant_id: Option<String>

Read only The ID of the merchant that owns the location.

Max Length 32

§country: Option<Country>

Read only The country of the location, in the two-letter format of ISO 3166. For example, US or JP.

§language_code: Option<Language>

The language associated with the location, in BCP 47 format. For more information, see Location language code.

§currency: Option<Currency>

Read only The currency used for all transactions at this location, in ISO 4217 format. For example, the currency code for US dollars is USD.

§phone_number: Option<String>

The phone number of the location. For example, +1 855-700-6000.

Max Length 17

§business_name: Option<String>

The name of the location’s overall business. This name is present on receipts and other customer-facing branding.

Max Length 255

§type: Option<LocationType>

The type of the location.

§website_url: Option<String>

The website URL of the location. For example, https://squareup.com.

Max Length 255

§business_hours: Option<BusinessHours>

The hours of operation for the location.

§business_email: Option<String>

The email address of the location. This can be unique to the location and is not always the email address for the business owner or administrator.

Max Length 255

§description: Option<String>

The description of the location. For example, Main Street location.

Max Length 1024

§twitter_username: Option<String>

The Twitter username of the location without the ‘@’ symbol. For example, Square.

Min Length 1 Max Length 15

§instagram_username: Option<String>

The Instagram username of the location without the ‘@’ symbol. For example, square.

Min Length 1 Max Length 30

§facebook_url: Option<String>

The Facebook profile URL of the location. The URL should begin with ‘facebook.com/’. For example, https://www.facebook.com/square.

Max Length 255

§coordinates: Option<Coordinates>

The physical coordinates (latitude and longitude) of the location.

§logo_url: Option<String>

Read only The URL of the logo image for the location. When configured in the Seller Dashboard (Receipts section), the logo appears on transactions (such as receipts and invoices) that Square generates on behalf of the seller. This image should have a roughly square (1:1) aspect ratio and should be at least 200x200 pixels.

Max Length 255

§pos_background_url: Option<String>

Read only The URL of the Point of Sale background image for the location.

Max Length 255

§mcc: Option<String>

A four-digit number that describes the kind of goods or services sold at the location. The merchant category code (MCC) of the location as standardized by ISO 18245. For example, 5045, for a location that sells computer goods and software.

Min Length 4 Max Length 4

§full_format_logo_url: Option<String>

Read only The URL of a full-format logo image for the location. When configured in the Seller Dashboard (Receipts section), the logo appears on transactions (such as receipts and invoices) that Square generates on behalf of the seller. This image can be wider than it is tall and should be at least 1280x648 pixels.

§tax_ids: Option<TaxIds>

The tax IDs for this location.

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
This method tests for self and other values to be equal, and is used by ==. Read more
This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason. Read more
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.

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