pub struct InvoiceHandler { /* private fields */ }Expand description
Handler for invoice operations
Implementations§
Source§impl InvoiceHandler
impl InvoiceHandler
Sourcepub fn new(client: FilesClient) -> Self
pub fn new(client: FilesClient) -> Self
Create a new invoice handler
Sourcepub async fn list(
&self,
cursor: Option<&str>,
per_page: Option<i64>,
) -> Result<(Vec<AccountLineItemEntity>, PaginationInfo)>
pub async fn list( &self, cursor: Option<&str>, per_page: Option<i64>, ) -> Result<(Vec<AccountLineItemEntity>, PaginationInfo)>
List invoices
§Arguments
cursor- Pagination cursorper_page- Results per page
§Returns
Tuple of (invoices, pagination_info)
§Example
use files_sdk::{FilesClient, InvoiceHandler};
let client = FilesClient::builder().api_key("key").build()?;
let handler = InvoiceHandler::new(client);
let (invoices, _) = handler.list(None, None).await?;Auto Trait Implementations§
impl !RefUnwindSafe for InvoiceHandler
impl !UnwindSafe for InvoiceHandler
impl Freeze for InvoiceHandler
impl Send for InvoiceHandler
impl Sync for InvoiceHandler
impl Unpin for InvoiceHandler
impl UnsafeUnpin for InvoiceHandler
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