pub struct GoogleMapsPlacesV1AutocompletePlacesResponseSuggestionStructuredFormat {
pub main_text: Option<GoogleMapsPlacesV1AutocompletePlacesResponseSuggestionFormattableText>,
pub secondary_text: Option<GoogleMapsPlacesV1AutocompletePlacesResponseSuggestionFormattableText>,
}Expand description
Contains a breakdown of a Place or query prediction into main text and secondary text. For Place predictions, the main text contains the specific name of the Place. For query predictions, the main text contains the query. The secondary text contains additional disambiguating features (such as a city or region) to further identify the Place or refine the query.
This type is not used in any activity, and only used as part of another schema.
Fields§
§main_text: Option<GoogleMapsPlacesV1AutocompletePlacesResponseSuggestionFormattableText>Represents the name of the Place or query.
secondary_text: Option<GoogleMapsPlacesV1AutocompletePlacesResponseSuggestionFormattableText>Represents additional disambiguating features (such as a city or region) to further identify the Place or refine the query.
Trait Implementations§
Source§impl Clone for GoogleMapsPlacesV1AutocompletePlacesResponseSuggestionStructuredFormat
impl Clone for GoogleMapsPlacesV1AutocompletePlacesResponseSuggestionStructuredFormat
Source§fn clone(
&self,
) -> GoogleMapsPlacesV1AutocompletePlacesResponseSuggestionStructuredFormat
fn clone( &self, ) -> GoogleMapsPlacesV1AutocompletePlacesResponseSuggestionStructuredFormat
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Default for GoogleMapsPlacesV1AutocompletePlacesResponseSuggestionStructuredFormat
impl Default for GoogleMapsPlacesV1AutocompletePlacesResponseSuggestionStructuredFormat
Source§fn default() -> GoogleMapsPlacesV1AutocompletePlacesResponseSuggestionStructuredFormat
fn default() -> GoogleMapsPlacesV1AutocompletePlacesResponseSuggestionStructuredFormat
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for GoogleMapsPlacesV1AutocompletePlacesResponseSuggestionStructuredFormat
impl<'de> Deserialize<'de> for GoogleMapsPlacesV1AutocompletePlacesResponseSuggestionStructuredFormat
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Part for GoogleMapsPlacesV1AutocompletePlacesResponseSuggestionStructuredFormat
Auto Trait Implementations§
impl Freeze for GoogleMapsPlacesV1AutocompletePlacesResponseSuggestionStructuredFormat
impl RefUnwindSafe for GoogleMapsPlacesV1AutocompletePlacesResponseSuggestionStructuredFormat
impl Send for GoogleMapsPlacesV1AutocompletePlacesResponseSuggestionStructuredFormat
impl Sync for GoogleMapsPlacesV1AutocompletePlacesResponseSuggestionStructuredFormat
impl Unpin for GoogleMapsPlacesV1AutocompletePlacesResponseSuggestionStructuredFormat
impl UnwindSafe for GoogleMapsPlacesV1AutocompletePlacesResponseSuggestionStructuredFormat
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