pub enum EventPayload {
None,
DcaFill {
in_amount: i64,
out_amount: i64,
},
DcaClosed {
status: TerminalStatus,
},
LimitFill {
in_amount: i64,
out_amount: i64,
remaining_in_amount: i64,
counterparty: String,
},
KaminoDisplay {
remaining_input_amount: i64,
filled_output_amount: i64,
terminal_status: Option<TerminalStatus>,
},
}Expand description
Protocol-specific data extracted from a resolved event.
Variants§
None
No extra payload beyond the event type itself.
DcaFill
Jupiter DCA fill amounts.
DcaClosed
Jupiter DCA closed event with derived terminal status.
Fields
§
status: TerminalStatusLimitFill
Jupiter Limit Order fill amounts (shared by V1 and V2).
KaminoDisplay
Kamino order display snapshot with optional terminal status.
Trait Implementations§
Source§impl Clone for EventPayload
impl Clone for EventPayload
Source§fn clone(&self) -> EventPayload
fn clone(&self) -> EventPayload
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 EventPayload
impl Debug for EventPayload
Source§impl PartialEq for EventPayload
impl PartialEq for EventPayload
impl Eq for EventPayload
impl StructuralPartialEq for EventPayload
Auto Trait Implementations§
impl Freeze for EventPayload
impl RefUnwindSafe for EventPayload
impl Send for EventPayload
impl Sync for EventPayload
impl Unpin for EventPayload
impl UnsafeUnpin for EventPayload
impl UnwindSafe for EventPayload
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> 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