Struct offchain::types::AddressObject [−][src]
pub struct AddressObject {
pub city: Option<String>,
pub country: Option<String>,
pub line1: Option<String>,
pub line2: Option<String>,
pub postal_code: Option<String>,
pub state: Option<String>,
}Expand description
Represents a physical address
Fields
city: Option<String>The city, district, suburb, town, or village
country: Option<String>Two-letter country code (https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)
line1: Option<String>Address line 1
line2: Option<String>Address line 2 - apartment, unit, etc.
postal_code: Option<String>ZIP or postal code
state: Option<String>State, county, province, region.
Trait Implementations
Returns the “default value” for a type. Read more
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
This method tests for self and other values to be equal, and is used
by ==. Read more
This method tests for !=.
Auto Trait Implementations
impl RefUnwindSafe for AddressObject
impl Send for AddressObject
impl Sync for AddressObject
impl Unpin for AddressObject
impl UnwindSafe for AddressObject
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span, returning an
Instrumented wrapper. Read more
type Output = T
type Output = T
Should always be Self
Generates a hash used only for tests.