pub struct OrderId(/* private fields */);
Expand description
A unique numeric ID for each order in the protocol.
Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for OrderId
impl<'de> Deserialize<'de> for OrderId
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 FromStr for OrderId
impl FromStr for OrderId
§type Err = ParseIntError
type Err = ParseIntError
The associated error which can be returned from parsing.
source§impl JsonSchema for OrderId
impl JsonSchema for OrderId
source§fn schema_name() -> String
fn schema_name() -> String
The name of the generated JSON Schema. Read more
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(gen: &mut SchemaGenerator) -> Schema
fn json_schema(gen: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
§fn is_referenceable() -> bool
fn is_referenceable() -> bool
Whether JSON Schemas generated for this type should be re-used where possible using the
$ref
keyword. Read moresource§impl KeyDeserialize for OrderId
impl KeyDeserialize for OrderId
type Output = OrderId
source§const KEY_ELEMS: u16 = 1u16
const KEY_ELEMS: u16 = 1u16
The number of key elements is used for the deserialization of compound keys.
It should be equal to PrimaryKey::key().len()
fn from_vec(value: Vec<u8>) -> StdResult<Self::Output>
fn from_slice(value: &[u8]) -> Result<Self::Output, StdError>
source§impl Ord for OrderId
impl Ord for OrderId
source§impl PartialEq for OrderId
impl PartialEq for OrderId
source§impl PartialOrd for OrderId
impl PartialOrd for OrderId
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl<'a> PrimaryKey<'a> for OrderId
impl<'a> PrimaryKey<'a> for OrderId
§type Prefix = ()
type Prefix = ()
These associated types need to implement
Prefixer
, so that they can be useful arguments
for prefix()
, sub_prefix()
, and their key-deserializable variants.type SubPrefix = ()
§type Suffix = OrderId
type Suffix = OrderId
These associated types need to implement
KeyDeserialize
, so that they can be returned from
range_de()
and friends.type SuperSuffix = OrderId
fn joined_key(&self) -> Vec<u8>
fn joined_extra_key(&self, key: &[u8]) -> Vec<u8>
impl Copy for OrderId
impl Eq for OrderId
impl StructuralEq for OrderId
impl StructuralPartialEq for OrderId
Auto Trait Implementations§
impl RefUnwindSafe for OrderId
impl Send for OrderId
impl Sync for OrderId
impl Unpin for OrderId
impl UnwindSafe for OrderId
Blanket Implementations§
§impl<U> As for U
impl<U> As for U
§fn as_<T>(self) -> Twhere
T: CastFrom<U>,
fn as_<T>(self) -> Twhere T: CastFrom<U>,
Casts
self
to type T
. The semantics of numeric casting with the as
operator are followed, so <T as As>::as_::<U>
can be used in the same way as T as U
for numeric conversions. Read moresource§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
§impl<T> QueryResultExt for Twhere
T: Serialize,
impl<T> QueryResultExt for Twhere T: Serialize,
§fn query_result(&self) -> Result<Binary, Error>
fn query_result(&self) -> Result<Binary, Error>
Convert the value to its JSON representation