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