pub struct IamRespondingAPI<C> { /* private fields */ }
Expand description
Main struct for interacting with the IAmResponding API.
Implementations§
Source§impl<C> IamRespondingAPI<C>
impl<C> IamRespondingAPI<C>
Sourcepub fn new(client: C) -> Self
pub fn new(client: C) -> Self
Creates a new IamRespondingAPI instance with a provided HTTP client.
Sourcepub async fn login(
&self,
agency: &str,
user: &str,
pass: &str,
) -> Result<(), ApiError>
pub async fn login( &self, agency: &str, user: &str, pass: &str, ) -> Result<(), ApiError>
Logs in to the IAmResponding API.
Sourcepub async fn get_now_responding(&self) -> Result<Vec<NowResponding>, ApiError>
pub async fn get_now_responding(&self) -> Result<Vec<NowResponding>, ApiError>
Fetches the currently responding members.
Auto Trait Implementations§
impl<C> Freeze for IamRespondingAPI<C>where
C: Freeze,
impl<C> RefUnwindSafe for IamRespondingAPI<C>where
C: RefUnwindSafe,
impl<C> Send for IamRespondingAPI<C>where
C: Send,
impl<C> Sync for IamRespondingAPI<C>where
C: Sync,
impl<C> Unpin for IamRespondingAPI<C>where
C: Unpin,
impl<C> UnwindSafe for IamRespondingAPI<C>where
C: UnwindSafe,
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