pub struct Address {Show 15 fields
pub name: Option<String>,
pub address_line1: Option<String>,
pub address_line2: Option<String>,
pub city: Option<String>,
pub state: Option<String>,
pub postal_code: Option<String>,
pub postal_country: Option<String>,
pub dependent_locality: Option<String>,
pub sorting_code: Option<String>,
pub language_code: Option<String>,
pub phone_number: Option<String>,
pub deprecated_is_reduced: Option<bool>,
pub first_name: Option<String>,
pub last_name: Option<String>,
pub email: Option<String>,
}Fields§
§name: Option<String>§address_line1: Option<String>§address_line2: Option<String>§city: Option<String>§state: Option<String>§postal_code: Option<String>§postal_country: Option<String>§dependent_locality: Option<String>§sorting_code: Option<String>§language_code: Option<String>§phone_number: Option<String>§deprecated_is_reduced: Option<bool>§first_name: Option<String>§last_name: Option<String>§email: Option<String>Implementations§
Source§impl Address
impl Address
Sourcepub fn address_line1(&self) -> &str
pub fn address_line1(&self) -> &str
Returns the value of address_line1, or the default value if address_line1 is unset.
Sourcepub fn address_line2(&self) -> &str
pub fn address_line2(&self) -> &str
Returns the value of address_line2, or the default value if address_line2 is unset.
Sourcepub fn state(&self) -> &str
pub fn state(&self) -> &str
Returns the value of state, or the default value if state is unset.
Sourcepub fn postal_code(&self) -> &str
pub fn postal_code(&self) -> &str
Returns the value of postal_code, or the default value if postal_code is unset.
Sourcepub fn postal_country(&self) -> &str
pub fn postal_country(&self) -> &str
Returns the value of postal_country, or the default value if postal_country is unset.
Sourcepub fn dependent_locality(&self) -> &str
pub fn dependent_locality(&self) -> &str
Returns the value of dependent_locality, or the default value if dependent_locality is unset.
Sourcepub fn sorting_code(&self) -> &str
pub fn sorting_code(&self) -> &str
Returns the value of sorting_code, or the default value if sorting_code is unset.
Sourcepub fn language_code(&self) -> &str
pub fn language_code(&self) -> &str
Returns the value of language_code, or the default value if language_code is unset.
Sourcepub fn phone_number(&self) -> &str
pub fn phone_number(&self) -> &str
Returns the value of phone_number, or the default value if phone_number is unset.
Sourcepub fn deprecated_is_reduced(&self) -> bool
pub fn deprecated_is_reduced(&self) -> bool
Returns the value of deprecated_is_reduced, or the default value if deprecated_is_reduced is unset.
Sourcepub fn first_name(&self) -> &str
pub fn first_name(&self) -> &str
Returns the value of first_name, or the default value if first_name is unset.
Trait Implementations§
Source§impl Message for Address
impl Message for Address
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
Source§fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self. Read moreSource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self.