#[non_exhaustive]pub struct AddressQuery {
pub kind: Option<Kind>,
/* private fields */
}Expand description
The street address that you want to search for. Specify addresses in accordance with the format used by the national postal service of the country concerned.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.kind: Option<Kind>The address query.
Implementations§
Source§impl AddressQuery
impl AddressQuery
Sourcepub fn address(&self) -> Option<&Box<PostalAddress>>
pub fn address(&self) -> Option<&Box<PostalAddress>>
The value of kind
if it holds a Address, None if the field is not set or
holds a different branch.
Sourcepub fn set_address<T: Into<Box<PostalAddress>>>(self, v: T) -> Self
pub fn set_address<T: Into<Box<PostalAddress>>>(self, v: T) -> Self
Sets the value of kind
to hold a Address.
Note that all the setters affecting kind are
mutually exclusive.
§Example
ⓘ
use google_cloud_type::model::PostalAddress;
let x = AddressQuery::new().set_address(PostalAddress::default()/* use setters */);
assert!(x.address().is_some());
assert!(x.address_query().is_none());Sourcepub fn address_query(&self) -> Option<&String>
pub fn address_query(&self) -> Option<&String>
The value of kind
if it holds a AddressQuery, None if the field is not set or
holds a different branch.
Sourcepub fn set_address_query<T: Into<String>>(self, v: T) -> Self
pub fn set_address_query<T: Into<String>>(self, v: T) -> Self
Trait Implementations§
Source§impl Clone for AddressQuery
impl Clone for AddressQuery
Source§fn clone(&self) -> AddressQuery
fn clone(&self) -> AddressQuery
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 AddressQuery
impl Debug for AddressQuery
Source§impl Default for AddressQuery
impl Default for AddressQuery
Source§fn default() -> AddressQuery
fn default() -> AddressQuery
Returns the “default value” for a type. Read more
Source§impl Message for AddressQuery
impl Message for AddressQuery
Source§impl PartialEq for AddressQuery
impl PartialEq for AddressQuery
impl StructuralPartialEq for AddressQuery
Auto Trait Implementations§
impl Freeze for AddressQuery
impl RefUnwindSafe for AddressQuery
impl Send for AddressQuery
impl Sync for AddressQuery
impl Unpin for AddressQuery
impl UnsafeUnpin for AddressQuery
impl UnwindSafe for AddressQuery
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
Mutably borrows from an owned value. Read more