pub struct Address {
pub street_address: Option<String>,
pub city: Option<String>,
pub administrative_area: Option<String>,
pub postal_code: Option<String>,
pub region_code: Option<String>,
}
Expand description
Shipping address of the warehouse.
Fields§
§street_address: Option<String>
Street-level part of the address. For example: 111w 31st Street
.
city: Option<String>
Required. City, town or commune. May also include dependent localities or sublocalities (For example neighborhoods or suburbs).
administrative_area: Option<String>
Required. Top-level administrative subdivision of the country. For example, a state like California (“CA”) or a province like Quebec (“QC”).
postal_code: Option<String>
Required. Postal code or ZIP (For example “94043”).
region_code: Option<String>
Required. CLDR country code (For example “US”).
Implementations§
source§impl Address
impl Address
sourcepub fn street_address(&self) -> &str
pub fn street_address(&self) -> &str
Returns the value of street_address
, or the default value if street_address
is unset.
sourcepub fn administrative_area(&self) -> &str
pub fn administrative_area(&self) -> &str
Returns the value of administrative_area
, or the default value if administrative_area
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 region_code(&self) -> &str
pub fn region_code(&self) -> &str
Returns the value of region_code
, or the default value if region_code
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
.source§impl PartialEq for Address
impl PartialEq for Address
impl StructuralPartialEq for Address
Auto Trait Implementations§
impl Freeze for Address
impl RefUnwindSafe for Address
impl Send for Address
impl Sync for Address
impl Unpin for Address
impl UnwindSafe for Address
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T
in a tonic::Request