pub struct GlobalLeaf {
pub next_order_id: u64,
pub next_trade_id: u64,
pub command_chain_root: [u8; 32],
pub command_chain_seq: u64,
}Expand description
Global counters leaf (singleton). Key: keccak256(“global”)
Fields§
§next_order_id: u64§next_trade_id: u64§command_chain_root: [u8; 32]§command_chain_seq: u64Trait Implementations§
Source§impl BorshDeserialize for GlobalLeaf
impl BorshDeserialize for GlobalLeaf
fn deserialize_reader<__R: Read>(reader: &mut __R) -> Result<Self, Error>
§fn deserialize(buf: &mut &[u8]) -> Result<Self, Error>
fn deserialize(buf: &mut &[u8]) -> Result<Self, Error>
Deserializes this instance from a given slice of bytes.
Updates the buffer to point at the remaining bytes.
§fn try_from_slice(v: &[u8]) -> Result<Self, Error>
fn try_from_slice(v: &[u8]) -> Result<Self, Error>
Deserialize this instance from a slice of bytes.
fn try_from_reader<R>(reader: &mut R) -> Result<Self, Error>where
R: Read,
Source§impl BorshSerialize for GlobalLeaf
impl BorshSerialize for GlobalLeaf
Source§impl Clone for GlobalLeaf
impl Clone for GlobalLeaf
Source§fn clone(&self) -> GlobalLeaf
fn clone(&self) -> GlobalLeaf
Returns a duplicate of the value. Read more
1.0.0 · 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 GlobalLeaf
impl Debug for GlobalLeaf
Source§impl<'de> Deserialize<'de> for GlobalLeaf
impl<'de> Deserialize<'de> for GlobalLeaf
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 PartialEq for GlobalLeaf
impl PartialEq for GlobalLeaf
Source§impl Serialize for GlobalLeaf
impl Serialize for GlobalLeaf
impl StructuralPartialEq for GlobalLeaf
Auto Trait Implementations§
impl Freeze for GlobalLeaf
impl RefUnwindSafe for GlobalLeaf
impl Send for GlobalLeaf
impl Sync for GlobalLeaf
impl Unpin for GlobalLeaf
impl UnsafeUnpin for GlobalLeaf
impl UnwindSafe for GlobalLeaf
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more