pub struct TransportationRfq {
pub request_id: String,
pub mode: TransportMode,
pub service_level: Option<String>,
pub equipment: Option<Equipment>,
pub consignor: Address,
pub consignee: Address,
pub stops: Vec<LegStop>,
pub cargo: CargoSummary,
pub requested_pickup: TimeWindow,
pub requested_delivery: TimeWindow,
pub accessorials: Vec<Accessorial>,
pub references: HashMap<String, String>,
}Expand description
Data model for an incoming transportation request
This is identical to TransportationRqState, but has no events, the rate is not set (as this is requested),
and the pickup and delivery timing are only a request (as nothing is planned yet).
Fields§
§request_id: StringYour unique ID (tender/booking)
mode: TransportModeMode and service flavor (e.g., FTL/LTL/Express)
service_level: Option<String>§equipment: Option<Equipment>Equipment needs (container/truck/trailer etc.)
consignor: Address“Ship-From” / origin
consignee: Address“Ship-To” / final destination
stops: Vec<LegStop>Optional intermediate stops / milk run
cargo: CargoSummaryShipment synopsis
requested_pickup: TimeWindowHigh-level pickup/delivery lifecycle timings
requested_delivery: TimeWindow§accessorials: Vec<Accessorial>Extras beyond “drive from A to B” (liftgate, hazardous, temperature control, etc.)
references: HashMap<String, String>Business references (PO, Delivery, Booking, BOL, SSCC, etc.)
Trait Implementations§
Source§impl Clone for TransportationRfq
impl Clone for TransportationRfq
Source§fn clone(&self) -> TransportationRfq
fn clone(&self) -> TransportationRfq
Returns a duplicate of the value. Read more
1.0.0 · 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 TransportationRfq
impl Debug for TransportationRfq
Source§impl<'de> Deserialize<'de> for TransportationRfq
impl<'de> Deserialize<'de> for TransportationRfq
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 From<TransportationRfq> for TransportationRqState
impl From<TransportationRfq> for TransportationRqState
Source§fn from(value: TransportationRfq) -> Self
fn from(value: TransportationRfq) -> Self
Converts to this type from the input type.
Source§impl JsonSchema for TransportationRfq
impl JsonSchema for TransportationRfq
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreSource§impl PartialEq for TransportationRfq
impl PartialEq for TransportationRfq
Source§impl Serialize for TransportationRfq
impl Serialize for TransportationRfq
impl StructuralPartialEq for TransportationRfq
Auto Trait Implementations§
impl Freeze for TransportationRfq
impl RefUnwindSafe for TransportationRfq
impl Send for TransportationRfq
impl Sync for TransportationRfq
impl Unpin for TransportationRfq
impl UnsafeUnpin for TransportationRfq
impl UnwindSafe for TransportationRfq
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