pub struct PositionCutHint { /* private fields */ }Expand description
Hint for PositionCut.
Implementations§
Source§impl PositionCutHint
impl PositionCutHint
Sourcepub async fn from_position<C: Deref<Target = impl Signer> + Clone>(
client: &Client<C>,
position: &Position,
) -> Result<Self>
pub async fn from_position<C: Deref<Target = impl Signer> + Clone>( client: &Client<C>, position: &Position, ) -> Result<Self>
Create from position.
Sourcepub fn try_new(
position: &Position,
store: Arc<Store>,
token_map: &TokenMap,
market: Pubkey,
market_meta: MarketMeta,
user: Option<&UserHeader>,
program_id: &Pubkey,
) -> Result<Self>
pub fn try_new( position: &Position, store: Arc<Store>, token_map: &TokenMap, market: Pubkey, market_meta: MarketMeta, user: Option<&UserHeader>, program_id: &Pubkey, ) -> Result<Self>
Create a new hint.
Sourcepub fn feeds(&self) -> &TokensWithFeed
pub fn feeds(&self) -> &TokensWithFeed
Get feeds.
Trait Implementations§
Source§impl Clone for PositionCutHint
impl Clone for PositionCutHint
Source§fn clone(&self) -> PositionCutHint
fn clone(&self) -> PositionCutHint
Returns a copy 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 moreAuto Trait Implementations§
impl Freeze for PositionCutHint
impl RefUnwindSafe for PositionCutHint
impl Send for PositionCutHint
impl Sync for PositionCutHint
impl Unpin for PositionCutHint
impl UnwindSafe for PositionCutHint
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§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