pub struct BookingResponse<T, U>{Show 21 fields
pub id: u32,
pub status: BookingStatus,
pub booked_at: OffsetDateTime,
pub booked_by: String,
pub created_at: OffsetDateTime,
pub updated_at: OffsetDateTime,
pub declared_value: U,
pub insured_value: U,
pub description: Option<String>,
pub items: Vec<Product<T, U>>,
pub label: String,
pub notifications: HashMap<String, bool>,
pub quotes: HashMap<String, Service<U>>,
pub sender: Account,
pub receiver: Account,
pub pickup_window: Vec<String>,
pub connote: Option<String>,
pub charged_weight: T,
pub scanned_weight: T,
pub special_instructions: String,
pub tailgate_delivery: bool,
}Expand description
Represents a response due to a booking request from the server
Fields§
§id: u32§status: BookingStatus§booked_at: OffsetDateTime§booked_by: String§created_at: OffsetDateTime§updated_at: OffsetDateTime§declared_value: U§insured_value: U§description: Option<String>§items: Vec<Product<T, U>>§label: String§notifications: HashMap<String, bool>§quotes: HashMap<String, Service<U>>§sender: Account§receiver: Account§pickup_window: Vec<String>§connote: Option<String>§charged_weight: T§scanned_weight: T§special_instructions: String§tailgate_delivery: boolTrait Implementations§
Source§impl<T, U> Debug for BookingResponse<T, U>
impl<T, U> Debug for BookingResponse<T, U>
Source§impl<'de, T, U> Deserialize<'de> for BookingResponse<T, U>
impl<'de, T, U> Deserialize<'de> for BookingResponse<T, U>
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<T, U> Freeze for BookingResponse<T, U>
impl<T, U> RefUnwindSafe for BookingResponse<T, U>where
U: RefUnwindSafe,
T: RefUnwindSafe,
impl<T, U> Send for BookingResponse<T, U>
impl<T, U> Sync for BookingResponse<T, U>
impl<T, U> Unpin for BookingResponse<T, U>
impl<T, U> UnwindSafe for BookingResponse<T, U>where
U: UnwindSafe,
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