pub struct CreateOrder {
pub order: OrderPayload,
}
Expand description
Creates an order.
Fields§
§order: OrderPayload
The order payload.
Implementations§
Source§impl CreateOrder
impl CreateOrder
Sourcepub fn new(order: OrderPayload) -> Self
pub fn new(order: OrderPayload) -> Self
New constructor.
Trait Implementations§
Source§impl Debug for CreateOrder
impl Debug for CreateOrder
Source§impl Endpoint for CreateOrder
impl Endpoint for CreateOrder
Source§type Body = OrderPayload
type Body = OrderPayload
The serializable body type.
Source§fn relative_path(&self) -> Cow<'_, str>
fn relative_path(&self) -> Cow<'_, str>
The endpoint relative path. Must start with a
/
Auto Trait Implementations§
impl Freeze for CreateOrder
impl RefUnwindSafe for CreateOrder
impl Send for CreateOrder
impl Sync for CreateOrder
impl Unpin for CreateOrder
impl UnwindSafe for CreateOrder
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