pub struct ReportsApi<'a> { /* private fields */ }Expand description
Expense Reports API.
Implementations§
Source§impl<'a> ReportsApi<'a>
impl<'a> ReportsApi<'a>
pub fn new(client: &'a ConcurClient) -> Self
Sourcepub async fn get(
&self,
user_id: &str,
context: &str,
report_id: &str,
) -> Result<Report>
pub async fn get( &self, user_id: &str, context: &str, report_id: &str, ) -> Result<Report>
Retrieve a report by ID.
Sourcepub async fn create(
&self,
user_id: &str,
context: &str,
report: &CreateReport,
) -> Result<CreateReportResponse>
pub async fn create( &self, user_id: &str, context: &str, report: &CreateReport, ) -> Result<CreateReportResponse>
Create a new report.
Sourcepub async fn update(
&self,
user_id: &str,
context: &str,
report_id: &str,
patch: &CreateReport,
) -> Result<()>
pub async fn update( &self, user_id: &str, context: &str, report_id: &str, patch: &CreateReport, ) -> Result<()>
Update an unsubmitted report (JSON Merge Patch).
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for ReportsApi<'a>
impl<'a> !UnwindSafe for ReportsApi<'a>
impl<'a> Forget for ReportsApi<'a>
impl<'a> Freeze for ReportsApi<'a>
impl<'a> Send for ReportsApi<'a>
impl<'a> Sync for ReportsApi<'a>
impl<'a> Unpin for ReportsApi<'a>
impl<'a> UnsafeUnpin for ReportsApi<'a>
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