pub struct StepTiming {
pub requested: Option<TimeWindow>,
pub planned: Option<TimeWindow>,
pub estimated: Option<DateTime<Utc>>,
pub actual: Option<DateTime<Utc>>,
}Expand description
Requested vs planned vs estimated vs actual for one step (pickup or delivery)
Fields§
§requested: Option<TimeWindow>What the shipper/transport user asked for
planned: Option<TimeWindow>What the carrier committed to after award/booking
estimated: Option<DateTime<Utc>>Rolling ETA during execution (single best estimate)
actual: Option<DateTime<Utc>>Final actual timestamp
Implementations§
Source§impl StepTiming
impl StepTiming
pub fn requested(tw: TimeWindow) -> Self
pub fn set_plan(&mut self, tw: TimeWindow)
pub fn set_estimate(&mut self, date: DateTime<Utc>)
pub fn set_actual(&mut self, date: DateTime<Utc>)
Trait Implementations§
Source§impl Clone for StepTiming
impl Clone for StepTiming
Source§fn clone(&self) -> StepTiming
fn clone(&self) -> StepTiming
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 StepTiming
impl Debug for StepTiming
Source§impl Default for StepTiming
impl Default for StepTiming
Source§fn default() -> StepTiming
fn default() -> StepTiming
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for StepTiming
impl<'de> Deserialize<'de> for StepTiming
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 StepTiming
impl JsonSchema for StepTiming
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 StepTiming
impl PartialEq for StepTiming
Source§impl Serialize for StepTiming
impl Serialize for StepTiming
impl Eq for StepTiming
impl StructuralPartialEq for StepTiming
Auto Trait Implementations§
impl Freeze for StepTiming
impl RefUnwindSafe for StepTiming
impl Send for StepTiming
impl Sync for StepTiming
impl Unpin for StepTiming
impl UnsafeUnpin for StepTiming
impl UnwindSafe for StepTiming
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