Struct lta_models::utils::Location
source · pub struct Location {
pub start: Coordinates,
pub end: Coordinates,
}
Expand description
Starting and ending location
Fields§
§start: Coordinates
§end: Coordinates
Implementations§
source§impl Location
impl Location
pub fn new(start_lat: f64, start_lang: f64, end_lat: f64, end_lang: f64) -> Self
pub fn from_coords(start: Coordinates, end: Coordinates) -> Self
Trait Implementations§
source§impl<'de> Deserialize<'de> for Location
impl<'de> Deserialize<'de> for Location
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 PartialEq for Location
impl PartialEq for Location
impl StructuralPartialEq for Location
Auto Trait Implementations§
impl RefUnwindSafe for Location
impl Send for Location
impl Sync for Location
impl Unpin for Location
impl UnwindSafe for Location
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