pub struct UserApiService { /* private fields */ }Implementations§
Source§impl UserApiService
impl UserApiService
pub fn new(client: Arc<NodestyApiClient>) -> Self
pub async fn get_services(&self) -> Result<ApiResponse<Vec<Service>>, Error>
pub async fn get_ticket_by_id( &self, ticket_id: &str, ) -> Result<ApiResponse<Ticket>, Error>
pub async fn get_tickets( &self, ) -> Result<ApiResponse<Vec<UserTicketSummary>>, Error>
pub async fn get_current_user(&self) -> Result<ApiResponse<User>, Error>
pub async fn get_invoice_by_id( &self, invoice_id: &str, ) -> Result<ApiResponse<Invoice>, Error>
pub async fn get_invoices( &self, ) -> Result<ApiResponse<Vec<UserInvoiceSummary>>, Error>
pub async fn get_sessions(&self) -> Result<ApiResponse<Vec<Session>>, Error>
Auto Trait Implementations§
impl Freeze for UserApiService
impl !RefUnwindSafe for UserApiService
impl Send for UserApiService
impl Sync for UserApiService
impl Unpin for UserApiService
impl !UnwindSafe for UserApiService
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