#[non_exhaustive]pub struct TerminalLocation {
pub point: Option<LatLng>,
pub terminal_point_id: Option<TerminalPointId>,
pub access_point_id: String,
pub trip_id: String,
pub terminal_location_type: WaypointType,
/* private fields */
}Expand description
Describes the location of a waypoint.
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.point: Option<LatLng>Required. Denotes the location of a trip waypoint.
terminal_point_id: Option<TerminalPointId>👎Deprecated
Deprecated: Specify the point field instead.
access_point_id: String👎Deprecated
Deprecated: Specify the point field instead.
trip_id: String👎Deprecated
Deprecated.
terminal_location_type: WaypointType👎Deprecated
Deprecated: Vehicle.waypoint will have this data.
Implementations§
Source§impl TerminalLocation
impl TerminalLocation
Sourcepub fn set_or_clear_point<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_point<T>(self, v: Option<T>) -> Self
Sourcepub fn set_terminal_point_id<T>(self, v: T) -> Selfwhere
T: Into<TerminalPointId>,
👎Deprecated
pub fn set_terminal_point_id<T>(self, v: T) -> Selfwhere
T: Into<TerminalPointId>,
Sets the value of terminal_point_id.
§Example
ⓘ
use google_maps_fleetengine_v1::model::TerminalPointId;
let x = TerminalLocation::new().set_terminal_point_id(TerminalPointId::default()/* use setters */);Sourcepub fn set_or_clear_terminal_point_id<T>(self, v: Option<T>) -> Selfwhere
T: Into<TerminalPointId>,
👎Deprecated
pub fn set_or_clear_terminal_point_id<T>(self, v: Option<T>) -> Selfwhere
T: Into<TerminalPointId>,
Sets or clears the value of terminal_point_id.
§Example
ⓘ
use google_maps_fleetengine_v1::model::TerminalPointId;
let x = TerminalLocation::new().set_or_clear_terminal_point_id(Some(TerminalPointId::default()/* use setters */));
let x = TerminalLocation::new().set_or_clear_terminal_point_id(None::<TerminalPointId>);Sourcepub fn set_access_point_id<T: Into<String>>(self, v: T) -> Self
👎Deprecated
pub fn set_access_point_id<T: Into<String>>(self, v: T) -> Self
Sets the value of access_point_id.
§Example
ⓘ
let x = TerminalLocation::new().set_access_point_id("example");Sourcepub fn set_trip_id<T: Into<String>>(self, v: T) -> Self
👎Deprecated
pub fn set_trip_id<T: Into<String>>(self, v: T) -> Self
Sourcepub fn set_terminal_location_type<T: Into<WaypointType>>(self, v: T) -> Self
👎Deprecated
pub fn set_terminal_location_type<T: Into<WaypointType>>(self, v: T) -> Self
Sets the value of terminal_location_type.
§Example
ⓘ
use google_maps_fleetengine_v1::model::WaypointType;
let x0 = TerminalLocation::new().set_terminal_location_type(WaypointType::PickupWaypointType);
let x1 = TerminalLocation::new().set_terminal_location_type(WaypointType::DropOffWaypointType);
let x2 = TerminalLocation::new().set_terminal_location_type(WaypointType::IntermediateDestinationWaypointType);Trait Implementations§
Source§impl Clone for TerminalLocation
impl Clone for TerminalLocation
Source§fn clone(&self) -> TerminalLocation
fn clone(&self) -> TerminalLocation
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 TerminalLocation
impl Debug for TerminalLocation
Source§impl Default for TerminalLocation
impl Default for TerminalLocation
Source§fn default() -> TerminalLocation
fn default() -> TerminalLocation
Returns the “default value” for a type. Read more
Source§impl Message for TerminalLocation
impl Message for TerminalLocation
Source§impl PartialEq for TerminalLocation
impl PartialEq for TerminalLocation
impl StructuralPartialEq for TerminalLocation
Auto Trait Implementations§
impl Freeze for TerminalLocation
impl RefUnwindSafe for TerminalLocation
impl Send for TerminalLocation
impl Sync for TerminalLocation
impl Unpin for TerminalLocation
impl UnsafeUnpin for TerminalLocation
impl UnwindSafe for TerminalLocation
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