pub struct InboxUploadHandler { /* private fields */ }Expand description
Handler for inbox upload operations
Implementations§
Source§impl InboxUploadHandler
impl InboxUploadHandler
Sourcepub fn new(client: FilesClient) -> Self
pub fn new(client: FilesClient) -> Self
Create a new inbox upload handler
Sourcepub async fn list(
&self,
cursor: Option<&str>,
per_page: Option<i64>,
sort_by: Option<Value>,
filter: Option<Value>,
inbox_registration_id: Option<i64>,
inbox_id: Option<i64>,
) -> Result<(Vec<InboxUploadEntity>, PaginationInfo)>
pub async fn list( &self, cursor: Option<&str>, per_page: Option<i64>, sort_by: Option<Value>, filter: Option<Value>, inbox_registration_id: Option<i64>, inbox_id: Option<i64>, ) -> Result<(Vec<InboxUploadEntity>, PaginationInfo)>
List inbox uploads
§Arguments
cursor- Pagination cursorper_page- Results per pagesort_by- Sort field and direction (e.g.,{"created_at": "desc"})filter- Filter criteria (e.g.,{"folder_behavior_id": 123})inbox_registration_id- Filter by inbox registration IDinbox_id- Filter by inbox ID
§Returns
Tuple of (inbox_uploads, pagination_info)
§Example
use files_sdk::{FilesClient, InboxUploadHandler};
let client = FilesClient::builder().api_key("key").build()?;
let handler = InboxUploadHandler::new(client);
let (uploads, _) = handler.list(None, None, None, None, None, None).await?;Auto Trait Implementations§
impl !RefUnwindSafe for InboxUploadHandler
impl !UnwindSafe for InboxUploadHandler
impl Freeze for InboxUploadHandler
impl Send for InboxUploadHandler
impl Sync for InboxUploadHandler
impl Unpin for InboxUploadHandler
impl UnsafeUnpin for InboxUploadHandler
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