pub struct LocationState {
Show 14 fields pub can_delete: Option<bool>, pub can_update: Option<bool>, pub has_pending_edits: Option<bool>, pub has_pending_verification: Option<bool>, pub is_disabled: Option<bool>, pub is_disconnected: Option<bool>, pub is_duplicate: Option<bool>, pub is_google_updated: Option<bool>, pub is_local_post_api_disabled: Option<bool>, pub is_pending_review: Option<bool>, pub is_published: Option<bool>, pub is_suspended: Option<bool>, pub is_verified: Option<bool>, pub needs_reverification: Option<bool>,
}
Expand description

Contains a set of booleans that reflect the state of a Location.

This type is not used in any activity, and only used as part of another schema.

Fields§

§can_delete: Option<bool>

Output only. Indicates whether the location can be deleted using the Google My Business API.

§can_update: Option<bool>

Output only. Indicates whether the location can be updated.

§has_pending_edits: Option<bool>

Output only. Indicates whether any of this Location’s properties are in the edit pending state.

§has_pending_verification: Option<bool>

Output only. Indicates whether the location has pending verification requests.

§is_disabled: Option<bool>

Output only. Indicates whether the location is disabled.

§is_disconnected: Option<bool>

Output only. Indicates whether the location is disconnected from a place on Google Maps.

§is_duplicate: Option<bool>

Output only. Indicates whether the location is a duplicate of another location. For more information, see metadata.duplicate.

§is_google_updated: Option<bool>

Output only. Indicates whether the place ID associated with this location has updates.

§is_local_post_api_disabled: Option<bool>

Output only. Indicates whether accounts.locations.localPosts is disabled for this location.

§is_pending_review: Option<bool>

Output only. Indicates whether the review of the location is pending.

§is_published: Option<bool>

Output only. Indicates whether the location is published.

§is_suspended: Option<bool>

Output only. Indicates whether the location is suspended. Suspended locations are not visible to end users in Google products. If you believe this was a mistake, see the [help center article] (https://support.google.com/business/answer/4569145).

§is_verified: Option<bool>

Output only. Indicates whether the location is verified.

§needs_reverification: Option<bool>

Output only. Indicates whether the location requires reverification.

Trait Implementations§

source§

impl Clone for LocationState

source§

fn clone(&self) -> LocationState

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for LocationState

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Default for LocationState

source§

fn default() -> LocationState

Returns the “default value” for a type. Read more
source§

impl<'de> Deserialize<'de> for LocationState

source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
source§

impl Serialize for LocationState

source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
source§

impl Part for LocationState

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,