pub struct NativeCid(pub String);Expand description
The form of a client order id as the broker sees it: a string in the broker’s own field.
Produced by CidCodec::encode and read back by CidCodec::decode. The content depends on
the broker and may carry a prefix or a changed alphabet, so treat it as opaque.
§Examples
use brokapi_core::NativeCid;
let n = NativeCid::new("abc");
assert_eq!(n.as_str(), "abc");Tuple Fields§
§0: StringImplementations§
Trait Implementations§
impl Eq for NativeCid
impl StructuralPartialEq for NativeCid
Auto Trait Implementations§
impl Freeze for NativeCid
impl RefUnwindSafe for NativeCid
impl Send for NativeCid
impl Sync for NativeCid
impl Unpin for NativeCid
impl UnsafeUnpin for NativeCid
impl UnwindSafe for NativeCid
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