Enum GoodTilOneof
pub enum GoodTilOneof {
GoodTilBlock(u32),
GoodTilBlockTime(u32),
}Expand description
Information about when the order expires.
Variants§
GoodTilBlock(u32)
The last block this order can be executed at (after which it will be unfillable). Used only for Short-Term orders. If this value is non-zero then the order is assumed to be a Short-Term order.
GoodTilBlockTime(u32)
good_til_block_time represents the unix timestamp (in seconds) at which a
stateful order will be considered expired. The
good_til_block_time is always evaluated against the previous block’s
BlockTime instead of the block in which the order is committed. If this
value is non-zero then the order is assumed to be a stateful or
conditional order.
Implementations§
§impl GoodTilOneof
impl GoodTilOneof
pub fn encode(&self, buf: &mut impl BufMut)
pub fn encode(&self, buf: &mut impl BufMut)
Encodes the message to a buffer.
pub fn merge(
field: &mut Option<GoodTilOneof>,
tag: u32,
wire_type: WireType,
buf: &mut impl Buf,
ctx: DecodeContext,
) -> Result<(), DecodeError>
pub fn merge( field: &mut Option<GoodTilOneof>, tag: u32, wire_type: WireType, buf: &mut impl Buf, ctx: DecodeContext, ) -> Result<(), DecodeError>
Decodes an instance of the message from a buffer, and merges it into self.
pub fn encoded_len(&self) -> usize
pub fn encoded_len(&self) -> usize
Returns the encoded length of the message without a length delimiter.
Trait Implementations§
§impl Clone for GoodTilOneof
impl Clone for GoodTilOneof
§fn clone(&self) -> GoodTilOneof
fn clone(&self) -> GoodTilOneof
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more§impl Debug for GoodTilOneof
impl Debug for GoodTilOneof
§impl PartialEq for GoodTilOneof
impl PartialEq for GoodTilOneof
impl Copy for GoodTilOneof
impl StructuralPartialEq for GoodTilOneof
Auto Trait Implementations§
impl Freeze for GoodTilOneof
impl RefUnwindSafe for GoodTilOneof
impl Send for GoodTilOneof
impl Sync for GoodTilOneof
impl Unpin for GoodTilOneof
impl UnwindSafe for GoodTilOneof
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
clone_to_uninit)§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>
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>
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§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request§impl<L> LayerExt<L> for L
impl<L> LayerExt<L> for L
§fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
Layered].