[][src]Struct acick_dropbox::FileMetadata

pub struct FileMetadata {
    pub name: String,
    pub id: String,
    pub client_modified: String,
    pub server_modified: String,
    pub rev: String,
    pub size: u64,
    pub path_lower: Option<String>,
    pub path_display: Option<String>,
    pub parent_shared_folder_id: Option<String>,
    pub media_info: Option<MediaInfo>,
    pub symlink_info: Option<SymlinkInfo>,
    pub sharing_info: Option<FileSharingInfo>,
    pub is_downloadable: bool,
    pub export_info: Option<ExportInfo>,
    pub property_groups: Option<Vec<PropertyGroup>>,
    pub has_explicit_shared_members: Option<bool>,
    pub content_hash: Option<String>,
    pub file_lock_info: Option<FileLockMetadata>,
}

Fields

name: String

The last component of the path (including extension). This never contains a slash.

id: String

A unique identifier for the file.

client_modified: String

For files, this is the modification time set by the desktop client when the file was added to Dropbox. Since this time is not verified (the Dropbox server stores whatever the desktop client sends up), this should only be used for display purposes (such as sorting) and not, for example, to determine if a file has changed or not.

server_modified: String

The last time the file was modified on Dropbox.

rev: String

A unique identifier for the current revision of a file. This field is the same rev as elsewhere in the API and can be used to detect changes and avoid conflicts.

size: u64

The file size in bytes.

path_lower: Option<String>

The lowercased full path in the user's Dropbox. This always starts with a slash. This field will be null if the file or folder is not mounted.

path_display: Option<String>

The cased path to be used for display purposes only. In rare instances the casing will not correctly match the user's filesystem, but this behavior will match the path provided in the Core API v1, and at least the last path component will have the correct casing. Changes to only the casing of paths won't be returned by list_folder_continue(). This field will be null if the file or folder is not mounted.

parent_shared_folder_id: Option<String>media_info: Option<MediaInfo>

Additional information if the file is a photo or video. This field will not be set on entries returned by list_folder(), list_folder_continue(), or get_thumbnail_batch(), starting December 2, 2019.

symlink_info: Option<SymlinkInfo>

Set if this file is a symlink.

sharing_info: Option<FileSharingInfo>

Set if this file is contained in a shared folder.

is_downloadable: bool

If true, file can be downloaded directly; else the file must be exported.

export_info: Option<ExportInfo>

Information about format this file can be exported to. This filed must be set if is_downloadable is set to false.

property_groups: Option<Vec<PropertyGroup>>

Additional information if the file has custom properties with the property template specified.

has_explicit_shared_members: Option<bool>

This flag will only be present if include_has_explicit_shared_members is true in list_folder() or get_metadata(). If this flag is present, it will be true if this file has any explicit shared members. This is different from sharing_info in that this could be true in the case where a file has explicit members but is not contained within a shared folder.

content_hash: Option<String>

A hash of the file content. This field can be used to verify data integrity. For more information see our Content hash page.

file_lock_info: Option<FileLockMetadata>

If present, the metadata associated with the file's current lock.

Methods

impl FileMetadata[src]

pub fn new(
    name: String,
    id: String,
    client_modified: String,
    server_modified: String,
    rev: String,
    size: u64
) -> FileMetadata
[src]

pub fn with_path_lower(self, value: Option<String>) -> FileMetadata[src]

pub fn with_path_display(self, value: Option<String>) -> FileMetadata[src]

pub fn with_parent_shared_folder_id(self, value: Option<String>) -> FileMetadata[src]

pub fn with_media_info(self, value: Option<MediaInfo>) -> FileMetadata[src]

pub fn with_sharing_info(self, value: Option<FileSharingInfo>) -> FileMetadata[src]

pub fn with_is_downloadable(self, value: bool) -> FileMetadata[src]

pub fn with_export_info(self, value: Option<ExportInfo>) -> FileMetadata[src]

pub fn with_property_groups(
    self,
    value: Option<Vec<PropertyGroup>>
) -> FileMetadata
[src]

pub fn with_has_explicit_shared_members(
    self,
    value: Option<bool>
) -> FileMetadata
[src]

pub fn with_content_hash(self, value: Option<String>) -> FileMetadata[src]

pub fn with_file_lock_info(
    self,
    value: Option<FileLockMetadata>
) -> FileMetadata
[src]

Trait Implementations

impl Debug for FileMetadata[src]

impl<'de> Deserialize<'de> for FileMetadata[src]

impl Serialize for FileMetadata[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Typeable for T where
    T: Any

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,