pub struct ClientOrderKey(pub String);Expand description
A stable client-side key for one intent, carried on a submission.
Distinct from OrderId, which the venue assigns per accepted order: two
submissions of the same intent have two order ids but one key. It is what
lets a resubmission after an unobserved acknowledgment be read as “the same
order again” rather than “a second order”. Opaque; compared only for
equality, and no substring of it is ever interpreted.
Tuple Fields§
§0: StringTrait Implementations§
Source§impl Clone for ClientOrderKey
impl Clone for ClientOrderKey
Source§fn clone(&self) -> ClientOrderKey
fn clone(&self) -> ClientOrderKey
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ClientOrderKey
impl Debug for ClientOrderKey
Source§impl<'de> Deserialize<'de> for ClientOrderKey
impl<'de> Deserialize<'de> for ClientOrderKey
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
impl Eq for ClientOrderKey
Source§impl Hash for ClientOrderKey
impl Hash for ClientOrderKey
Source§impl Ord for ClientOrderKey
impl Ord for ClientOrderKey
Source§fn cmp(&self, other: &ClientOrderKey) -> Ordering
fn cmp(&self, other: &ClientOrderKey) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for ClientOrderKey
impl PartialEq for ClientOrderKey
Source§impl PartialOrd for ClientOrderKey
impl PartialOrd for ClientOrderKey
Source§impl Serialize for ClientOrderKey
impl Serialize for ClientOrderKey
impl StructuralPartialEq for ClientOrderKey
Auto Trait Implementations§
impl Freeze for ClientOrderKey
impl RefUnwindSafe for ClientOrderKey
impl Send for ClientOrderKey
impl Sync for ClientOrderKey
impl Unpin for ClientOrderKey
impl UnsafeUnpin for ClientOrderKey
impl UnwindSafe for ClientOrderKey
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