pub struct PositionCutOperation<'a, 'info> { /* private fields */ }
Expand description
Position Cut Operation.
Implementations§
Source§impl<'a, 'info> PositionCutOperation<'a, 'info>
impl<'a, 'info> PositionCutOperation<'a, 'info>
Sourcepub fn builder() -> PositionCutOperationBuilder<'a, 'info, ((), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), ())>
pub fn builder() -> PositionCutOperationBuilder<'a, 'info, ((), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), ())>
Create a builder for building PositionCutOperation
.
On the builder, call .kind(...)
, .executor(...)
, .position(...)
, .event(...)
, .order(...)
, .market(...)
, .store(...)
, .oracle(...)
, .owner(...)
, .user(...)
, .nonce(...)
, .order_bump(...)
, .long_token_mint(...)
, .short_token_mint(...)
, .long_token_account(...)
, .short_token_account(...)
, .long_token_vault(...)
, .short_token_vault(...)
, .claimable_long_token_account_for_user(...)
, .claimable_short_token_account_for_user(...)
, .claimable_pnl_token_account_for_holding(...)
, .token_program(...)
, .system_program(...)
, .refund(...)
, .should_unwrap_native_token(...)
, .event_emitter(...)
to set the values of the fields.
Finally, call .build()
to create the instance of PositionCutOperation
.
Auto Trait Implementations§
impl<'a, 'info> Freeze for PositionCutOperation<'a, 'info>
impl<'a, 'info> !RefUnwindSafe for PositionCutOperation<'a, 'info>
impl<'a, 'info> !Send for PositionCutOperation<'a, 'info>
impl<'a, 'info> !Sync for PositionCutOperation<'a, 'info>
impl<'a, 'info> Unpin for PositionCutOperation<'a, 'info>
impl<'a, 'info> !UnwindSafe for PositionCutOperation<'a, 'info>
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
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>
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>
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