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