pub struct LocationAsset {
pub place_id: String,
pub business_profile_locations: Vec<BusinessProfileLocation>,
pub location_ownership_type: i32,
}
Expand description
A location asset.
Fields§
§place_id: String
Place IDs uniquely identify a place in the Google Places database and on Google Maps. This field is unique for a given customer ID and asset type. See https://developers.google.com/places/web-service/place-id to learn more about Place ID.
business_profile_locations: Vec<BusinessProfileLocation>
The list of business locations for the customer. This will only be returned if the Location Asset is syncing from the Business Profile account. It is possible to have multiple Business Profile listings under the same account that point to the same Place ID.
location_ownership_type: i32
The type of location ownership. If the type is BUSINESS_OWNER, it will be served as a location extension. If the type is AFFILIATE, it will be served as an affiliate location.
Implementations§
Source§impl LocationAsset
impl LocationAsset
Sourcepub fn location_ownership_type(&self) -> LocationOwnershipType
pub fn location_ownership_type(&self) -> LocationOwnershipType
Returns the enum value of location_ownership_type
, or the default if the field is set to an invalid enum value.
Sourcepub fn set_location_ownership_type(&mut self, value: LocationOwnershipType)
pub fn set_location_ownership_type(&mut self, value: LocationOwnershipType)
Sets location_ownership_type
to the provided enum value.
Trait Implementations§
Source§impl Clone for LocationAsset
impl Clone for LocationAsset
Source§fn clone(&self) -> LocationAsset
fn clone(&self) -> LocationAsset
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for LocationAsset
impl Debug for LocationAsset
Source§impl Default for LocationAsset
impl Default for LocationAsset
Source§impl Message for LocationAsset
impl Message for LocationAsset
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Source§fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>
fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>
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<B>(&self, buf: &mut B) -> Result<(), EncodeError>
fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>
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<B>(buf: B) -> Result<Self, DecodeError>
fn decode<B>(buf: B) -> Result<Self, DecodeError>
Source§fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>
fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>
Source§fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>
fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>
self
. Read moreSource§fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>
fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>
self
.Source§impl PartialEq for LocationAsset
impl PartialEq for LocationAsset
impl StructuralPartialEq for LocationAsset
Auto Trait Implementations§
impl Freeze for LocationAsset
impl RefUnwindSafe for LocationAsset
impl Send for LocationAsset
impl Sync for LocationAsset
impl Unpin for LocationAsset
impl UnwindSafe for LocationAsset
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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>
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