#[non_exhaustive]
pub struct SharedFolderMetadataBase { pub access_type: AccessLevel, pub is_inside_team_folder: bool, pub is_team_folder: bool, pub owner_display_names: Option<Vec<String>>, pub owner_team: Option<Team>, pub parent_shared_folder_id: Option<SharedFolderId>, pub path_display: Option<String>, pub path_lower: Option<String>, pub parent_folder_name: Option<String>, }
Available on crate feature dbx_sharing only.
Expand description

Properties of the shared folder.

Fields (Non-exhaustive)§

This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.
§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.

§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_display: Option<String>

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

§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.

Implementations§

source§

impl SharedFolderMetadataBase

source

pub fn new( access_type: AccessLevel, is_inside_team_folder: bool, is_team_folder: bool ) -> Self

source

pub fn with_owner_display_names(self, value: Vec<String>) -> Self

source

pub fn with_owner_team(self, value: Team) -> Self

source

pub fn with_parent_shared_folder_id(self, value: SharedFolderId) -> Self

source

pub fn with_path_display(self, value: String) -> Self

source

pub fn with_path_lower(self, value: String) -> Self

source

pub fn with_parent_folder_name(self, value: String) -> Self

Trait Implementations§

source§

impl Clone for SharedFolderMetadataBase

source§

fn clone(&self) -> SharedFolderMetadataBase

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for SharedFolderMetadataBase

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<'de> Deserialize<'de> for SharedFolderMetadataBase

source§

fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>

Deserialize this value from the given Serde deserializer. Read more
source§

impl From<SharedFolderMetadata> for SharedFolderMetadataBase

source§

fn from(subtype: SharedFolderMetadata) -> Self

Converts to this type from the input type.
source§

impl PartialEq for SharedFolderMetadataBase

source§

fn eq(&self, other: &SharedFolderMetadataBase) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl Serialize for SharedFolderMetadataBase

source§

fn serialize<S: Serializer>(&self, serializer: S) -> Result<S::Ok, S::Error>

Serialize this value into the given Serde serializer. Read more
source§

impl Eq for SharedFolderMetadataBase

source§

impl StructuralEq for SharedFolderMetadataBase

source§

impl StructuralPartialEq for SharedFolderMetadataBase

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> ToOwned for Twhere T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

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

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
source§

impl<T> DeserializeOwned for Twhere T: for<'de> Deserialize<'de>,