pub struct OrderSubmitResponse {
pub order_id: Option<String>,
pub location: Option<String>,
}Expand description
Result of submitting an order via POST .../orders or PUT .../orders/{id}.
Schwab returns 201 Created with an empty body; the only payload is a
Location header pointing at the new order resource. The order ID is the
last path segment of that URL. If the order filled immediately, Schwab may
omit the header entirely — hence both fields are optional.
Fields§
§order_id: Option<String>Order ID parsed from the Location header’s last path segment.
location: Option<String>Full Location header value, when present.
Trait Implementations§
Source§impl Clone for OrderSubmitResponse
impl Clone for OrderSubmitResponse
Source§impl Debug for OrderSubmitResponse
impl Debug for OrderSubmitResponse
Source§impl<'de> Deserialize<'de> for OrderSubmitResponse
impl<'de> Deserialize<'de> for OrderSubmitResponse
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 OrderSubmitResponse
Available on crate feature schemars only.
impl JsonSchema for OrderSubmitResponse
Available on crate feature
schemars only.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 OrderSubmitResponse
impl PartialEq for OrderSubmitResponse
Source§impl Serialize for OrderSubmitResponse
impl Serialize for OrderSubmitResponse
impl StructuralPartialEq for OrderSubmitResponse
Auto Trait Implementations§
impl Freeze for OrderSubmitResponse
impl RefUnwindSafe for OrderSubmitResponse
impl Send for OrderSubmitResponse
impl Sync for OrderSubmitResponse
impl Unpin for OrderSubmitResponse
impl UnsafeUnpin for OrderSubmitResponse
impl UnwindSafe for OrderSubmitResponse
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