pub enum CorrelationOutcome {
NotRequired,
Correlated(Vec<String>),
Uncorrelated {
reason: String,
},
}Expand description
Whether (and how) an event was correlated to an order PDA.
Variants§
NotRequired
Correlation is not meaningful for this event type
(e.g. Kamino UserSwapBalancesEvent is diagnostic-only).
Event was successfully matched to one or more order PDAs.
Event is the kind that should correlate, but context was missing
(e.g. Kamino OrderDisplayEvent without pre-fetched PDAs).
Trait Implementations§
Source§impl Clone for CorrelationOutcome
impl Clone for CorrelationOutcome
Source§fn clone(&self) -> CorrelationOutcome
fn clone(&self) -> CorrelationOutcome
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 CorrelationOutcome
impl Debug for CorrelationOutcome
Source§impl PartialEq for CorrelationOutcome
impl PartialEq for CorrelationOutcome
impl Eq for CorrelationOutcome
impl StructuralPartialEq for CorrelationOutcome
Auto Trait Implementations§
impl Freeze for CorrelationOutcome
impl RefUnwindSafe for CorrelationOutcome
impl Send for CorrelationOutcome
impl Sync for CorrelationOutcome
impl Unpin for CorrelationOutcome
impl UnsafeUnpin for CorrelationOutcome
impl UnwindSafe for CorrelationOutcome
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