logo
pub struct Address {
Show 14 fields pub address_id: Option<String>, pub city: Option<String>, pub company: Option<String>, pub country: Option<String>, pub is_restricted: Option<bool>, pub landmark: Option<String>, pub name: Option<String>, pub phone_number: Option<String>, pub postal_code: Option<String>, pub prefecture_or_district: Option<String>, pub state_or_province: Option<String>, pub street_1: Option<String>, pub street_2: Option<String>, pub street_3: Option<String>,
}
Expand description

The address that you want the Snow device(s) associated with a specific job to be shipped to. Addresses are validated at the time of creation. The address you provide must be located within the serviceable area of your region. Although no individual elements of the Address are required, if the address is invalid or unsupported, then an exception is thrown.

Fields

address_id: Option<String>

The unique ID for an address.

city: Option<String>

The city in an address that a Snow device is to be delivered to.

company: Option<String>

The name of the company to receive a Snow device at an address.

country: Option<String>

The country in an address that a Snow device is to be delivered to.

is_restricted: Option<bool>

If the address you are creating is a primary address, then set this option to true. This field is not supported in most regions.

landmark: Option<String>

This field is no longer used and the value is ignored.

name: Option<String>

The name of a person to receive a Snow device at an address.

phone_number: Option<String>

The phone number associated with an address that a Snow device is to be delivered to.

postal_code: Option<String>

The postal code in an address that a Snow device is to be delivered to.

prefecture_or_district: Option<String>

This field is no longer used and the value is ignored.

state_or_province: Option<String>

The state or province in an address that a Snow device is to be delivered to.

street_1: Option<String>

The first line in a street address that a Snow device is to be delivered to.

street_2: Option<String>

The second line in a street address that a Snow device is to be delivered to.

street_3: Option<String>

The third line in a street address that a Snow device is to be delivered to.

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 !=.

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

🔬 This is a nightly-only experimental API. (toowned_clone_into)

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