pub struct CloseOrderBuilder<'a, C> { /* private fields */ }
Expand description
Close Order Builder.
Implementations§
Source§impl<'a, S, C> CloseOrderBuilder<'a, C>
impl<'a, S, C> CloseOrderBuilder<'a, C>
Sourcepub fn hint_with_order(
&mut self,
order: &Order,
user: Option<&UserHeader>,
program_id: &Pubkey,
) -> Result<&mut Self>
pub fn hint_with_order( &mut self, order: &Order, user: Option<&UserHeader>, program_id: &Pubkey, ) -> Result<&mut Self>
Set hint with the given order.
Sourcepub fn hint(&mut self, hint: CloseOrderHint) -> &mut Self
pub fn hint(&mut self, hint: CloseOrderHint) -> &mut Self
Set hint.
Sourcepub async fn build(&mut self) -> Result<TransactionBuilder<'a, C>>
pub async fn build(&mut self) -> Result<TransactionBuilder<'a, C>>
Build TransactionBuilder
for cancelling the order.
Auto Trait Implementations§
impl<'a, C> Freeze for CloseOrderBuilder<'a, C>
impl<'a, C> !RefUnwindSafe for CloseOrderBuilder<'a, C>
impl<'a, C> Send for CloseOrderBuilder<'a, C>
impl<'a, C> Sync for CloseOrderBuilder<'a, C>
impl<'a, C> Unpin for CloseOrderBuilder<'a, C>
impl<'a, C> !UnwindSafe for CloseOrderBuilder<'a, C>
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