pub struct Location {
    pub address: Option<String>,
    pub city: Option<String>,
    pub region: Option<String>,
    pub postal_code: Option<String>,
    pub country: Option<String>,
    pub lat: Option<f64>,
    pub lon: Option<f64>,
    pub store_number: Option<String>,
}

Fields

address: Option<String>

The street address where the transaction occurred.

city: Option<String>

The city where the transaction occurred.

region: Option<String>

The region or state where the transaction occurred. In API versions 2018-05-22 and earlier, this field is called state.

postal_code: Option<String>

The postal code where the transaction occurred. In API versions 2018-05-22 and earlier, this field is called zip.

country: Option<String>

The ISO 3166-1 alpha-2 country code where the transaction occurred.

lat: Option<f64>

The latitude where the transaction occurred.

lon: Option<f64>

The longitude where the transaction occurred.

store_number: Option<String>

The merchant defined store number where the transaction occurred.

Trait Implementations

Formats the value using the given formatter. Read more

Deserialize this value from the given Serde deserializer. 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 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