Struct offchain::types::AddressObject
source · 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§
source§impl Clone for AddressObject
impl Clone for AddressObject
source§fn clone(&self) -> AddressObject
fn clone(&self) -> AddressObject
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 AddressObject
impl Debug for AddressObject
source§impl Default for AddressObject
impl Default for AddressObject
source§fn default() -> AddressObject
fn default() -> AddressObject
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for AddressObject
impl<'de> Deserialize<'de> for AddressObject
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 PartialEq<AddressObject> for AddressObject
impl PartialEq<AddressObject> for AddressObject
source§fn eq(&self, other: &AddressObject) -> bool
fn eq(&self, other: &AddressObject) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for AddressObject
impl Serialize for AddressObject
impl Eq for AddressObject
impl StructuralEq for AddressObject
impl StructuralPartialEq for AddressObject
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§
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<T> TestOnlyHash for Twhere
T: Serialize + ?Sized,
impl<T> TestOnlyHash for Twhere T: Serialize + ?Sized,
§fn test_only_hash(&self) -> HashValue
fn test_only_hash(&self) -> HashValue
Generates a hash used only for tests.