Struct ramp_api::reimbursements::Reimbursements
source · pub struct Reimbursements {
pub client: Client,
}
Fields§
§client: Client
Implementations§
source§impl Reimbursements
impl Reimbursements
sourcepub async fn get_page(
&self,
start: &str,
page_size: f64
) -> Result<Response<Vec<Reimbursement>>, ClientError>
pub async fn get_page( &self, start: &str, page_size: f64 ) -> Result<Response<Vec<Reimbursement>>, ClientError>
List Reimbursements.
This function performs a GET
to the /reimbursements
endpoint.
Parameters:
start: &str
– The ID of the last entity of the previous page, used for pagination to get the next page.page_size: f64
– The number of results to be returned in each page. The value must be between 2 and 10,000. If not specified, the default will be 1,000.
sourcepub async fn get_all(&self) -> Result<Response<Vec<Reimbursement>>, ClientError>
pub async fn get_all(&self) -> Result<Response<Vec<Reimbursement>>, ClientError>
List Reimbursements.
This function performs a GET
to the /reimbursements
endpoint.
As opposed to get
, this function returns all the pages of the request at once.
sourcepub async fn get(
&self,
id: &str
) -> Result<Response<Reimbursement>, ClientError>
pub async fn get( &self, id: &str ) -> Result<Response<Reimbursement>, ClientError>
Get details for one reimbursement.
This function performs a GET
to the /reimbursements/{id}
endpoint.
Auto Trait Implementations§
impl !RefUnwindSafe for Reimbursements
impl Send for Reimbursements
impl Sync for Reimbursements
impl Unpin for Reimbursements
impl !UnwindSafe for Reimbursements
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