Struct google_maps::places::place_autocomplete::response::structured_format::StructuredFormat
source · pub struct StructuredFormat {
pub main_text: String,
pub main_text_matched_substrings: Vec<MatchedSubstring>,
pub secondary_text: String,
pub secondary_text_matched_substrings: Option<Vec<MatchedSubstring>>,
}
Expand description
Provides pre-formatted text that can be shown in your autocomplete results. This content is meant to be read as-is. Do not programmatically parse the formatted address.
See also: PlaceAutocompleteStructuredFormat
Fields§
§main_text: String
Contains the main text of a prediction, usually the name of the place.
main_text_matched_substrings: Vec<MatchedSubstring>
Contains an array with offset
value and length
. These describe the
location of the entered term in the prediction result text, so that the
term can be highlighted if desired.
See PlaceAutocompleteMatchedSubstring for more information.
secondary_text: String
Contains the secondary text of a prediction, usually the location of the place.
secondary_text_matched_substrings: Option<Vec<MatchedSubstring>>
Contains an array with offset
value and length
. These describe the
location of the entered term in the prediction result text, so that the
term can be highlighted if desired.
See PlaceAutocompleteMatchedSubstring for more information.
Trait Implementations§
source§impl Clone for StructuredFormat
impl Clone for StructuredFormat
source§fn clone(&self) -> StructuredFormat
fn clone(&self) -> StructuredFormat
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for StructuredFormat
impl Debug for StructuredFormat
source§impl<'de> Deserialize<'de> for StructuredFormat
impl<'de> Deserialize<'de> for StructuredFormat
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>,
source§impl FromStr for StructuredFormat
impl FromStr for StructuredFormat
source§impl Hash for StructuredFormat
impl Hash for StructuredFormat
source§impl PartialEq<StructuredFormat> for StructuredFormat
impl PartialEq<StructuredFormat> for StructuredFormat
source§fn eq(&self, other: &StructuredFormat) -> bool
fn eq(&self, other: &StructuredFormat) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for StructuredFormat
impl Serialize for StructuredFormat
impl Eq for StructuredFormat
impl StructuralEq for StructuredFormat
impl StructuralPartialEq for StructuredFormat
Auto Trait Implementations§
impl RefUnwindSafe for StructuredFormat
impl Send for StructuredFormat
impl Sync for StructuredFormat
impl Unpin for StructuredFormat
impl UnwindSafe for StructuredFormat
Blanket Implementations§
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.