pub struct Markets { /* private fields */ }Expand description
Markets namespace for market-related operations
Implementations§
Source§impl Markets
impl Markets
Sourcepub fn get(&self, id: impl Into<String>) -> Request<Market, GammaError>
pub fn get(&self, id: impl Into<String>) -> Request<Market, GammaError>
Get a specific market by ID
Sourcepub fn get_by_slug(
&self,
slug: impl Into<String>,
) -> Request<Market, GammaError>
pub fn get_by_slug( &self, slug: impl Into<String>, ) -> Request<Market, GammaError>
Get a market by its slug
Sourcepub fn list(&self) -> ListMarkets
pub fn list(&self) -> ListMarkets
List markets with optional filtering
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Markets
impl !RefUnwindSafe for Markets
impl Send for Markets
impl Sync for Markets
impl Unpin for Markets
impl !UnwindSafe for Markets
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