pub struct TransportationRequest {Show 15 fields
pub request_id: String,
pub status: TransportStatus,
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 pickup: StepTiming,
pub delivery: StepTiming,
pub accessorials: Vec<Accessorial>,
pub references: HashMap<String, String>,
pub rate: Option<UnitRate>,
pub events: Vec<TransportEvent>,
}Expand description
A transport service request/tender/booking (A→B or multi-stop)
Fields§
§request_id: StringYour unique ID (tender/booking)
status: TransportStatusCurrent lifecycle state
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
pickup: StepTimingHigh-level pickup/delivery lifecycle timings
delivery: StepTiming§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.)
rate: Option<UnitRate>Quoted/awarded rate (flat, per hour/km/container — via UnitRate)
events: Vec<TransportEvent>Execution updates (optional stream of events)
Trait Implementations§
Source§impl Clone for TransportationRequest
impl Clone for TransportationRequest
Source§fn clone(&self) -> TransportationRequest
fn clone(&self) -> TransportationRequest
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 TransportationRequest
impl Debug for TransportationRequest
Source§impl<'de> Deserialize<'de> for TransportationRequest
impl<'de> Deserialize<'de> for TransportationRequest
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 JsonSchema for TransportationRequest
impl JsonSchema for TransportationRequest
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 moreAuto Trait Implementations§
impl Freeze for TransportationRequest
impl RefUnwindSafe for TransportationRequest
impl Send for TransportationRequest
impl Sync for TransportationRequest
impl Unpin for TransportationRequest
impl UnwindSafe for TransportationRequest
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