Struct HarvestPositionInstruction
pub struct HarvestPositionInstruction {
pub instructions: Vec<Instruction>,
pub additional_signers: Vec<Keypair>,
pub fees_quote: CollectFeesQuote,
pub rewards_quote: CollectRewardsQuote,
}Expand description
Represents the instructions and quotes for harvesting a position.
This struct contains the instructions required to harvest a position, along with detailed information about the available fees and rewards to collect.
Fields§
§instructions: Vec<Instruction>A vector of Instruction objects required to execute the harvesting process.
additional_signers: Vec<Keypair>A vector of Keypair objects representing additional signers required for the instructions.
fees_quote: CollectFeesQuoteDetails of the fees available to collect from the position:
fee_owed_a- The amount of fees available to collect in token A.fee_owed_b- The amount of fees available to collect in token B.
rewards_quote: CollectRewardsQuoteDetails of the rewards available to collect from the position:
rewards- An array containing up to threeCollectRewardQuoteentries, one for each reward token.- Each entry includes
rewards_owed, the amount of the respective reward token available to collect.
- Each entry includes
Trait Implementations§
Auto Trait Implementations§
impl Freeze for HarvestPositionInstruction
impl RefUnwindSafe for HarvestPositionInstruction
impl Send for HarvestPositionInstruction
impl Sync for HarvestPositionInstruction
impl Unpin for HarvestPositionInstruction
impl UnwindSafe for HarvestPositionInstruction
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
§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