pub struct ReleaseDatesClient { /* private fields */ }
Implementations§
Source§impl ReleaseDatesClient
impl ReleaseDatesClient
Sourcepub async fn get(
&self,
request_builder: RequestBuilder,
) -> Result<Vec<ReleaseDate>, Box<dyn Error + Send + Sync + 'static>>
pub async fn get( &self, request_builder: RequestBuilder, ) -> Result<Vec<ReleaseDate>, Box<dyn Error + Send + Sync + 'static>>
Receives a configured RequestBuilder an returns a result containing a collection
Sourcepub async fn get_by_id(
&self,
id: usize,
limit: usize,
) -> Result<Vec<ReleaseDate>, Box<dyn Error + Send + Sync + 'static>>
pub async fn get_by_id( &self, id: usize, limit: usize, ) -> Result<Vec<ReleaseDate>, Box<dyn Error + Send + Sync + 'static>>
Returns a collection filtered by id and limits the retrieved registries using limit parameter value.
Sourcepub async fn get_first_by_id(
&self,
id: usize,
) -> Result<ReleaseDate, Box<dyn Error + Send + Sync + 'static>>
pub async fn get_first_by_id( &self, id: usize, ) -> Result<ReleaseDate, Box<dyn Error + Send + Sync + 'static>>
Returns the element by Id for this client in Option
Source§impl ReleaseDatesClient
impl ReleaseDatesClient
Sourcepub async fn get_by_game_id(
&self,
game_id: usize,
limit: usize,
) -> Option<Vec<ReleaseDate>>
pub async fn get_by_game_id( &self, game_id: usize, limit: usize, ) -> Option<Vec<ReleaseDate>>
Receives a game_id and a limit of registries and returns an Option
Auto Trait Implementations§
impl Freeze for ReleaseDatesClient
impl RefUnwindSafe for ReleaseDatesClient
impl Send for ReleaseDatesClient
impl Sync for ReleaseDatesClient
impl Unpin for ReleaseDatesClient
impl UnwindSafe for ReleaseDatesClient
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