pub struct GoogleMapsPlacesV1AutocompletePlacesResponseSuggestionFormattableText {
pub matches: Option<Vec<GoogleMapsPlacesV1AutocompletePlacesResponseSuggestionStringRange>>,
pub text: Option<String>,
}Expand description
Text representing a Place or query prediction. The text may be used as is or formatted.
This type is not used in any activity, and only used as part of another schema.
Fields§
§matches: Option<Vec<GoogleMapsPlacesV1AutocompletePlacesResponseSuggestionStringRange>>A list of string ranges identifying where the input request matched in text. The ranges can be used to format specific parts of text. The substrings may not be exact matches of input if the matching was determined by criteria other than string matching (for example, spell corrections or transliterations). These values are Unicode character offsets of text. The ranges are guaranteed to be ordered in increasing offset values.
text: Option<String>Text that may be used as is or formatted with matches.
Trait Implementations§
Source§impl Clone for GoogleMapsPlacesV1AutocompletePlacesResponseSuggestionFormattableText
impl Clone for GoogleMapsPlacesV1AutocompletePlacesResponseSuggestionFormattableText
Source§fn clone(
&self,
) -> GoogleMapsPlacesV1AutocompletePlacesResponseSuggestionFormattableText
fn clone( &self, ) -> GoogleMapsPlacesV1AutocompletePlacesResponseSuggestionFormattableText
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 GoogleMapsPlacesV1AutocompletePlacesResponseSuggestionFormattableText
impl Default for GoogleMapsPlacesV1AutocompletePlacesResponseSuggestionFormattableText
Source§fn default() -> GoogleMapsPlacesV1AutocompletePlacesResponseSuggestionFormattableText
fn default() -> GoogleMapsPlacesV1AutocompletePlacesResponseSuggestionFormattableText
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for GoogleMapsPlacesV1AutocompletePlacesResponseSuggestionFormattableText
impl<'de> Deserialize<'de> for GoogleMapsPlacesV1AutocompletePlacesResponseSuggestionFormattableText
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 GoogleMapsPlacesV1AutocompletePlacesResponseSuggestionFormattableText
Auto Trait Implementations§
impl Freeze for GoogleMapsPlacesV1AutocompletePlacesResponseSuggestionFormattableText
impl RefUnwindSafe for GoogleMapsPlacesV1AutocompletePlacesResponseSuggestionFormattableText
impl Send for GoogleMapsPlacesV1AutocompletePlacesResponseSuggestionFormattableText
impl Sync for GoogleMapsPlacesV1AutocompletePlacesResponseSuggestionFormattableText
impl Unpin for GoogleMapsPlacesV1AutocompletePlacesResponseSuggestionFormattableText
impl UnwindSafe for GoogleMapsPlacesV1AutocompletePlacesResponseSuggestionFormattableText
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