pub struct Service<T>where
T: Float,{
pub total: T,
pub price_insurance_ex: T,
pub fee: T,
pub insured_amount: T,
pub service: String,
pub transit_time: String,
pub pickup_dates: Vec<String>,
pub pickup_time: HashMap<String, String>,
}Expand description
A service provided by one of the companies listed by Transdirect. It is put in the products file because it is a product provided by external companies.
Fields§
§total: T§price_insurance_ex: T§fee: T§insured_amount: T§service: String§transit_time: String§pickup_dates: Vec<String>§pickup_time: HashMap<String, String>Trait Implementations§
Source§impl<'de, T> Deserialize<'de> for Service<T>where
T: Float + Deserialize<'de>,
impl<'de, T> Deserialize<'de> for Service<T>where
T: Float + Deserialize<'de>,
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
impl<T> Eq for Service<T>
impl<T> StructuralPartialEq for Service<T>where
T: Float,
Auto Trait Implementations§
impl<T> Freeze for Service<T>where
T: Freeze,
impl<T> RefUnwindSafe for Service<T>where
T: RefUnwindSafe,
impl<T> Send for Service<T>where
T: Send,
impl<T> Sync for Service<T>where
T: Sync,
impl<T> Unpin for Service<T>where
T: Unpin,
impl<T> UnwindSafe for Service<T>where
T: UnwindSafe,
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
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.