pub struct OrderCreated {
pub order_id: String,
pub version: Option<i32>,
pub location_id: String,
pub state: OrderState,
pub created_at: DateTime,
}Expand description
This is a model struct for OrderCreated type.
Fields§
§order_id: StringThe order’s unique ID.
version: Option<i32>The version number, which is incremented each time an update is committed to the order. Orders that were not created through the API do not include a version number and therefore cannot be updated.
location_id: StringThe ID of the seller location that this order is associated with.
state: OrderStateThe state of the order.
created_at: DateTimeRead only The timestamp of when the event was created, in RFC 3339 format. Examples for January 25th, 2020 6:25:34pm Pacific Standard Time: UTC: 2020-01-26T02:25:34Z Pacific Standard Time with UTC offset: 2020-01-25T18:25:34-08:00
Trait Implementations§
Source§impl Clone for OrderCreated
impl Clone for OrderCreated
Source§fn clone(&self) -> OrderCreated
fn clone(&self) -> OrderCreated
Returns a copy 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 OrderCreated
impl Debug for OrderCreated
Source§impl<'de> Deserialize<'de> for OrderCreated
impl<'de> Deserialize<'de> for OrderCreated
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 PartialEq for OrderCreated
impl PartialEq for OrderCreated
Source§impl Serialize for OrderCreated
impl Serialize for OrderCreated
impl Eq for OrderCreated
impl StructuralPartialEq for OrderCreated
Auto Trait Implementations§
impl Freeze for OrderCreated
impl RefUnwindSafe for OrderCreated
impl Send for OrderCreated
impl Sync for OrderCreated
impl Unpin for OrderCreated
impl UnwindSafe for OrderCreated
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