Enum GoodTilOneof
pub enum GoodTilOneof {
GoodTilBlock(u32),
GoodTilBlockTime(u32),
}Expand description
Information about when the order cancellation expires.
Variants§
GoodTilBlock(u32)
The last block this order cancellation can be executed at. Used only for Short-Term orders and must be zero for stateful orders.
GoodTilBlockTime(u32)
good_til_block_time represents the unix timestamp (in seconds) at which a
stateful order cancellation 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.
This value must be zero for Short-Term orders.
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
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 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 UnsafeUnpin for GoodTilOneof
impl UnwindSafe for GoodTilOneof
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§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
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>,
Applies the layer to a service and wraps it in [
Layered].