list_revisions

Function list_revisions 

Source
pub fn list_revisions(
    client: &impl UserAuthClient,
    arg: &ListRevisionsArg,
) -> Result<ListRevisionsResult, Error<ListRevisionsError>>
Available on crate feature dbx_files only.
Expand description

Returns revisions for files based on a file path or a file id. The file path or file id is identified from the latest file entry at the given file path or id. This end point allows your app to query either by file path or file id by setting the mode parameter appropriately. In the ListRevisionsMode::Path (default) mode, all revisions at the same file path as the latest file entry are returned. If revisions with the same file id are desired, then mode must be set to ListRevisionsMode::Id. The ListRevisionsMode::Id mode is useful to retrieve revisions for a given file across moves or renames.