pub struct ListComments { /* private fields */ }Expand description
Request builder for listing comments
Implementations§
Source§impl ListComments
impl ListComments
Sourcepub fn parent_entity_type(self, entity_type: impl Into<String>) -> Self
pub fn parent_entity_type(self, entity_type: impl Into<String>) -> Self
Filter by parent entity type (Event, Series, market)
Sourcepub fn parent_entity_id(self, id: i64) -> Self
pub fn parent_entity_id(self, id: i64) -> Self
Filter by parent entity ID
Sourcepub fn get_positions(self, include: bool) -> Self
pub fn get_positions(self, include: bool) -> Self
Include position data in response
Sourcepub fn holders_only(self, holders_only: bool) -> Self
pub fn holders_only(self, holders_only: bool) -> Self
Restrict results to position holders only
Sourcepub fn market_id(self, id: impl Into<String>) -> Self
pub fn market_id(self, id: impl Into<String>) -> Self
Filter by market ID (deprecated - use parent_entity_id with parent_entity_type=market)
Sourcepub fn event_id(self, id: impl Into<String>) -> Self
pub fn event_id(self, id: impl Into<String>) -> Self
Filter by event ID (deprecated - use parent_entity_id with parent_entity_type=Event)
Auto Trait Implementations§
impl Freeze for ListComments
impl !RefUnwindSafe for ListComments
impl Send for ListComments
impl Sync for ListComments
impl Unpin for ListComments
impl !UnwindSafe for ListComments
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