pub struct HistoryHandler { /* private fields */ }
Expand description
Handler for history operations
Implementations§
Source§impl HistoryHandler
impl HistoryHandler
Sourcepub fn new(client: FilesClient) -> Self
pub fn new(client: FilesClient) -> Self
Create a new history handler
Sourcepub async fn list_for_file(
&self,
path: &str,
cursor: Option<&str>,
per_page: Option<i64>,
) -> Result<(Vec<Value>, PaginationInfo)>
pub async fn list_for_file( &self, path: &str, cursor: Option<&str>, per_page: Option<i64>, ) -> Result<(Vec<Value>, PaginationInfo)>
Sourcepub async fn list_for_folder(
&self,
path: &str,
cursor: Option<&str>,
per_page: Option<i64>,
) -> Result<(Vec<Value>, PaginationInfo)>
pub async fn list_for_folder( &self, path: &str, cursor: Option<&str>, per_page: Option<i64>, ) -> Result<(Vec<Value>, PaginationInfo)>
List history for a specific folder path
§Arguments
path
- Folder pathcursor
- Pagination cursorper_page
- Results per page
Sourcepub async fn list_for_user(
&self,
user_id: i64,
cursor: Option<&str>,
per_page: Option<i64>,
) -> Result<(Vec<Value>, PaginationInfo)>
pub async fn list_for_user( &self, user_id: i64, cursor: Option<&str>, per_page: Option<i64>, ) -> Result<(Vec<Value>, PaginationInfo)>
List history for a specific user
§Arguments
user_id
- User IDcursor
- Pagination cursorper_page
- Results per page
Sourcepub async fn list_logins(
&self,
cursor: Option<&str>,
per_page: Option<i64>,
) -> Result<(Vec<Value>, PaginationInfo)>
pub async fn list_logins( &self, cursor: Option<&str>, per_page: Option<i64>, ) -> Result<(Vec<Value>, PaginationInfo)>
Sourcepub async fn create_export(
&self,
start_at: Option<&str>,
end_at: Option<&str>,
query_action: Option<&str>,
query_user_id: Option<&str>,
query_folder: Option<&str>,
) -> Result<HistoryExportEntity>
pub async fn create_export( &self, start_at: Option<&str>, end_at: Option<&str>, query_action: Option<&str>, query_user_id: Option<&str>, query_folder: Option<&str>, ) -> Result<HistoryExportEntity>
Sourcepub async fn get_export(&self, id: i64) -> Result<HistoryExportEntity>
pub async fn get_export(&self, id: i64) -> Result<HistoryExportEntity>
Sourcepub async fn get_export_results(
&self,
cursor: Option<&str>,
per_page: Option<i64>,
history_export_id: Option<i64>,
) -> Result<(Vec<HistoryExportResultEntity>, PaginationInfo)>
pub async fn get_export_results( &self, cursor: Option<&str>, per_page: Option<i64>, history_export_id: Option<i64>, ) -> Result<(Vec<HistoryExportResultEntity>, PaginationInfo)>
Get history export results
§Arguments
cursor
- Pagination cursorper_page
- Results per pagehistory_export_id
- Filter by export ID
Auto Trait Implementations§
impl Freeze for HistoryHandler
impl !RefUnwindSafe for HistoryHandler
impl Send for HistoryHandler
impl Sync for HistoryHandler
impl Unpin for HistoryHandler
impl !UnwindSafe for HistoryHandler
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