Struct googleplay_protobuf::googleplay::Address
source · [−]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 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>
is_reduced: Option<bool>
first_name: Option<String>
last_name: Option<String>
email: Option<String>
Implementations
sourceimpl 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 is_reduced(&self) -> bool
pub fn is_reduced(&self) -> bool
Returns the value of is_reduced
, or the default value if 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
sourceimpl Message for Address
impl Message for Address
sourcefn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Returns the encoded length of the message without a length delimiter.
sourcefn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError> where
B: BufMut,
fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError> where
B: BufMut,
Encodes the message to a buffer. Read more
sourcefn encode_to_vec(&self) -> Vec<u8, Global>
fn encode_to_vec(&self) -> Vec<u8, Global>
Encodes the message to a newly allocated buffer.
sourcefn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError> where
B: BufMut,
fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError> where
B: BufMut,
Encodes the message with a length-delimiter to a buffer. Read more
sourcefn encode_length_delimited_to_vec(&self) -> Vec<u8, Global>
fn encode_length_delimited_to_vec(&self) -> Vec<u8, Global>
Encodes the message with a length-delimiter to a newly allocated buffer.
sourcefn decode<B>(buf: B) -> Result<Self, DecodeError> where
B: Buf,
Self: Default,
fn decode<B>(buf: B) -> Result<Self, DecodeError> where
B: Buf,
Self: Default,
Decodes an instance of the message from a buffer. Read more
sourcefn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError> where
B: Buf,
Self: Default,
fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError> where
B: Buf,
Self: Default,
Decodes a length-delimited instance of the message from the buffer.
sourcefn merge<B>(&mut self, buf: B) -> Result<(), DecodeError> where
B: Buf,
fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError> where
B: Buf,
Decodes an instance of the message from a buffer, and merges it into self
. Read more
sourcefn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError> where
B: Buf,
fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError> where
B: Buf,
Decodes a length-delimited instance of the message from buffer, and
merges it into self
. Read more
impl StructuralPartialEq for Address
Auto Trait Implementations
impl RefUnwindSafe for Address
impl Send for Address
impl Sync for Address
impl Unpin for Address
impl UnwindSafe for Address
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more