pub struct ListPositions { /* private fields */ }Expand description
Request builder for listing user positions
Implementations§
Source§impl ListPositions
impl ListPositions
Sourcepub fn market(
self,
condition_ids: impl IntoIterator<Item = impl ToString>,
) -> Self
pub fn market( self, condition_ids: impl IntoIterator<Item = impl ToString>, ) -> Self
Filter by specific market condition IDs (comma-separated)
Sourcepub fn event_id(
self,
event_ids: impl IntoIterator<Item = impl ToString>,
) -> Self
pub fn event_id( self, event_ids: impl IntoIterator<Item = impl ToString>, ) -> Self
Filter by event IDs (comma-separated)
Sourcepub fn size_threshold(self, threshold: f64) -> Self
pub fn size_threshold(self, threshold: f64) -> Self
Set minimum position size filter (default: 1)
Sourcepub fn redeemable(self, redeemable: bool) -> Self
pub fn redeemable(self, redeemable: bool) -> Self
Filter for redeemable positions only
Sourcepub fn sort_by(self, sort_by: PositionSortBy) -> Self
pub fn sort_by(self, sort_by: PositionSortBy) -> Self
Set sort field
Sourcepub fn sort_direction(self, direction: SortDirection) -> Self
pub fn sort_direction(self, direction: SortDirection) -> Self
Set sort direction (default: DESC)
Auto Trait Implementations§
impl Freeze for ListPositions
impl !RefUnwindSafe for ListPositions
impl Send for ListPositions
impl Sync for ListPositions
impl Unpin for ListPositions
impl UnsafeUnpin for ListPositions
impl !UnwindSafe for ListPositions
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