pub struct Vehicle {
pub id: String,
pub name: Option<String>,
pub location: Location,
pub shifts: Vec<Shift>,
pub skills: Vec<String>,
pub departure_time: Option<String>,
pub visits: Vec<String>,
}Expand description
A vehicle available for scheduling.
Fields§
§id: String§name: Option<String>§location: Location§shifts: Vec<Shift>§skills: Vec<String>§departure_time: Option<String>§visits: Vec<String>Trait Implementations§
Source§impl<'de> Deserialize<'de> for Vehicle
impl<'de> Deserialize<'de> for Vehicle
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
Auto Trait Implementations§
impl Freeze for Vehicle
impl RefUnwindSafe for Vehicle
impl Send for Vehicle
impl Sync for Vehicle
impl Unpin for Vehicle
impl UnsafeUnpin for Vehicle
impl UnwindSafe for Vehicle
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