#[non_exhaustive]pub struct SearchDestinationsResponse {
pub destinations: Vec<Destination>,
/* private fields */
}Expand description
Response message for DestinationService.SearchDestinations.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.destinations: Vec<Destination>A list of destinations.
The service returns one result if a primary destination can be unambiguously identified from the primary query. Otherwise, the service might return multiple results for disambiguation or zero results.
Implementations§
Source§impl SearchDestinationsResponse
impl SearchDestinationsResponse
Sourcepub fn set_destinations<T, V>(self, v: T) -> Self
pub fn set_destinations<T, V>(self, v: T) -> Self
Sets the value of destinations.
§Example
ⓘ
use google_maps_geocode_v4::model::Destination;
let x = SearchDestinationsResponse::new()
.set_destinations([
Destination::default()/* use setters */,
Destination::default()/* use (different) setters */,
]);Trait Implementations§
Source§impl Clone for SearchDestinationsResponse
impl Clone for SearchDestinationsResponse
Source§fn clone(&self) -> SearchDestinationsResponse
fn clone(&self) -> SearchDestinationsResponse
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 SearchDestinationsResponse
impl Debug for SearchDestinationsResponse
Source§impl Default for SearchDestinationsResponse
impl Default for SearchDestinationsResponse
Source§fn default() -> SearchDestinationsResponse
fn default() -> SearchDestinationsResponse
Returns the “default value” for a type. Read more
Source§impl Message for SearchDestinationsResponse
impl Message for SearchDestinationsResponse
impl StructuralPartialEq for SearchDestinationsResponse
Auto Trait Implementations§
impl Freeze for SearchDestinationsResponse
impl RefUnwindSafe for SearchDestinationsResponse
impl Send for SearchDestinationsResponse
impl Sync for SearchDestinationsResponse
impl Unpin for SearchDestinationsResponse
impl UnsafeUnpin for SearchDestinationsResponse
impl UnwindSafe for SearchDestinationsResponse
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