pub struct ResolveContext {
pub pre_fetched_order_pdas: Option<Vec<String>>,
}Expand description
Caller-supplied context needed to resolve certain events.
Kamino OrderDisplayEvent carries no order PDA in its payload.
The caller should use raw path metadata when available to pre-fetch the
exact order PDA from the matching instruction, then pass the result here
so the adapter can correlate the event.
Fields§
§pre_fetched_order_pdas: Option<Vec<String>>Order PDAs extracted from instruction accounts for the same transaction.
Required for Kamino OrderDisplayEvent; None causes Uncorrelated.
Auto Trait Implementations§
impl Freeze for ResolveContext
impl RefUnwindSafe for ResolveContext
impl Send for ResolveContext
impl Sync for ResolveContext
impl Unpin for ResolveContext
impl UnsafeUnpin for ResolveContext
impl UnwindSafe for ResolveContext
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> 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