Struct google_maps::places::place_autocomplete::response::matched_substring::MatchedSubstring
source · pub struct MatchedSubstring {
pub length: usize,
pub offset: usize,
}
Expand description
Contains a substring that describes the location of the entered term in the prediction result text, so that the term can be highlighted if desired.
See also: PlaceAutocompleteMatchedSubstring
Fields§
§length: usize
Length of the matched substring in the prediction result text.
offset: usize
Start location of the matched substring in the prediction result text.
Trait Implementations§
source§impl Clone for MatchedSubstring
impl Clone for MatchedSubstring
source§fn clone(&self) -> MatchedSubstring
fn clone(&self) -> MatchedSubstring
Returns a copy 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 Debug for MatchedSubstring
impl Debug for MatchedSubstring
source§impl<'de> Deserialize<'de> for MatchedSubstring
impl<'de> Deserialize<'de> for MatchedSubstring
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
source§impl FromStr for MatchedSubstring
impl FromStr for MatchedSubstring
source§impl Hash for MatchedSubstring
impl Hash for MatchedSubstring
source§impl PartialEq for MatchedSubstring
impl PartialEq for MatchedSubstring
source§fn eq(&self, other: &MatchedSubstring) -> bool
fn eq(&self, other: &MatchedSubstring) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for MatchedSubstring
impl Serialize for MatchedSubstring
impl Eq for MatchedSubstring
impl StructuralPartialEq for MatchedSubstring
Auto Trait Implementations§
impl Freeze for MatchedSubstring
impl RefUnwindSafe for MatchedSubstring
impl Send for MatchedSubstring
impl Sync for MatchedSubstring
impl Unpin for MatchedSubstring
impl UnwindSafe for MatchedSubstring
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