pub struct OnchainOrderData {
pub sender: Address,
pub placement_error: Option<String>,
}Expand description
On-chain placement metadata for orders submitted directly on-chain (as opposed to the off-chain API).
Fields§
§sender: AddressThe address that created the on-chain order (may differ from owner for
EthFlow orders where the contract is the technical owner).
placement_error: Option<String>Non-None when the orderbook rejected the order due to a placement error.
Implementations§
Source§impl OnchainOrderData
impl OnchainOrderData
Sourcepub const fn new(sender: Address) -> Self
pub const fn new(sender: Address) -> Self
Construct an OnchainOrderData record.
Sourcepub const fn has_placement_error(&self) -> bool
pub const fn has_placement_error(&self) -> bool
Returns true if a placement error was reported for this on-chain order.
Trait Implementations§
Source§impl Clone for OnchainOrderData
impl Clone for OnchainOrderData
Source§fn clone(&self) -> OnchainOrderData
fn clone(&self) -> OnchainOrderData
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 OnchainOrderData
impl Debug for OnchainOrderData
Source§impl<'de> Deserialize<'de> for OnchainOrderData
impl<'de> Deserialize<'de> for OnchainOrderData
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 Display for OnchainOrderData
impl Display for OnchainOrderData
Auto Trait Implementations§
impl Freeze for OnchainOrderData
impl RefUnwindSafe for OnchainOrderData
impl Send for OnchainOrderData
impl Sync for OnchainOrderData
impl Unpin for OnchainOrderData
impl UnsafeUnpin for OnchainOrderData
impl UnwindSafe for OnchainOrderData
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,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.