[][src]Struct dropbox_sdk::sharing::SharedFolderMetadata

pub struct SharedFolderMetadata {
    pub access_type: AccessLevel,
    pub is_inside_team_folder: bool,
    pub is_team_folder: bool,
    pub name: String,
    pub policy: FolderPolicy,
    pub preview_url: String,
    pub shared_folder_id: SharedFolderId,
    pub time_invited: DropboxTimestamp,
    pub owner_display_names: Option<Vec<String>>,
    pub owner_team: Option<Team>,
    pub parent_shared_folder_id: Option<SharedFolderId>,
    pub path_lower: Option<String>,
    pub parent_folder_name: Option<String>,
    pub link_metadata: Option<SharedContentLinkMetadata>,
    pub permissions: Option<Vec<FolderPermission>>,
    pub access_inheritance: AccessInheritance,
}
This is supported on crate feature dbx_sharing only.

The metadata which includes basic information about the shared folder.

Fields

access_type: AccessLevel

The current user's access level for this shared folder.

is_inside_team_folder: bool

Whether this folder is inside of a team folder.

is_team_folder: bool

Whether this folder is a team folder.

name: String

The name of the this shared folder.

policy: FolderPolicy

Policies governing this shared folder.

preview_url: String

URL for displaying a web preview of the shared folder.

shared_folder_id: SharedFolderId

The ID of the shared folder.

time_invited: DropboxTimestamp

Timestamp indicating when the current user was invited to this shared folder.

owner_display_names: Option<Vec<String>>

The display names of the users that own the folder. If the folder is part of a team folder, the display names of the team admins are also included. Absent if the owner display names cannot be fetched.

owner_team: Option<Team>

The team that owns the folder. This field is not present if the folder is not owned by a team.

parent_shared_folder_id: Option<SharedFolderId>

The ID of the parent shared folder. This field is present only if the folder is contained within another shared folder.

path_lower: Option<String>

The lower-cased full path of this shared folder. Absent for unmounted folders.

parent_folder_name: Option<String>

Display name for the parent folder.

link_metadata: Option<SharedContentLinkMetadata>

The metadata of the shared content link to this shared folder. Absent if there is no link on the folder. This is for an unreleased feature so it may not be returned yet.

permissions: Option<Vec<FolderPermission>>

Actions the current user may perform on the folder and its contents. The set of permissions corresponds to the FolderActions in the request.

access_inheritance: AccessInheritance

Whether the folder inherits its members from its parent.

Implementations

impl SharedFolderMetadata[src]

pub fn new(
    access_type: AccessLevel,
    is_inside_team_folder: bool,
    is_team_folder: bool,
    name: String,
    policy: FolderPolicy,
    preview_url: String,
    shared_folder_id: SharedFolderId,
    time_invited: DropboxTimestamp
) -> Self
[src]

pub fn with_owner_display_names(self, value: Option<Vec<String>>) -> Self[src]

pub fn with_owner_team(self, value: Option<Team>) -> Self[src]

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

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

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

pub fn with_permissions(self, value: Option<Vec<FolderPermission>>) -> Self[src]

pub fn with_access_inheritance(self, value: AccessInheritance) -> Self[src]

Trait Implementations

impl Debug for SharedFolderMetadata[src]

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

impl Serialize for SharedFolderMetadata[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: for<'de> 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.