Struct dropbox_sdk::sharing::FolderLinkMetadata
source · [−]#[non_exhaustive]pub struct FolderLinkMetadata {
pub url: String,
pub name: String,
pub link_permissions: LinkPermissions,
pub id: Option<Id>,
pub expires: Option<DropboxTimestamp>,
pub path_lower: Option<String>,
pub team_member_info: Option<TeamMemberInfo>,
pub content_owner_team_info: Option<TeamInfo>,
}dbx_sharing only.Expand description
The metadata of a folder shared link.
Fields (Non-exhaustive)
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.url: StringURL of the shared link.
name: StringThe linked file name (including extension). This never contains a slash.
link_permissions: LinkPermissionsThe link’s access permissions.
id: Option<Id>A unique identifier for the linked file.
expires: Option<DropboxTimestamp>Expiration time, if set. By default the link won’t expire.
path_lower: Option<String>The lowercased full path in the user’s Dropbox. This always starts with a slash. This field will only be present only if the linked file is in the authenticated user’s dropbox.
team_member_info: Option<TeamMemberInfo>The team membership information of the link’s owner. This field will only be present if the link’s owner is a team member.
content_owner_team_info: Option<TeamInfo>The team information of the content’s owner. This field will only be present if the content’s owner is a team member and the content’s owner team is different from the link’s owner team.
Implementations
sourceimpl FolderLinkMetadata
impl FolderLinkMetadata
pub fn new(url: String, name: String, link_permissions: LinkPermissions) -> Self
pub fn with_id(self, value: Id) -> Self
pub fn with_expires(self, value: DropboxTimestamp) -> Self
pub fn with_path_lower(self, value: String) -> Self
pub fn with_team_member_info(self, value: TeamMemberInfo) -> Self
pub fn with_content_owner_team_info(self, value: TeamInfo) -> Self
Trait Implementations
sourceimpl Clone for FolderLinkMetadata
impl Clone for FolderLinkMetadata
sourcefn clone(&self) -> FolderLinkMetadata
fn clone(&self) -> FolderLinkMetadata
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Debug for FolderLinkMetadata
impl Debug for FolderLinkMetadata
sourceimpl<'de> Deserialize<'de> for FolderLinkMetadata
impl<'de> Deserialize<'de> for FolderLinkMetadata
sourcefn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
sourceimpl PartialEq<FolderLinkMetadata> for FolderLinkMetadata
impl PartialEq<FolderLinkMetadata> for FolderLinkMetadata
sourcefn eq(&self, other: &FolderLinkMetadata) -> bool
fn eq(&self, other: &FolderLinkMetadata) -> bool
This method tests for self and other values to be equal, and is used
by ==. Read more
sourcefn ne(&self, other: &FolderLinkMetadata) -> bool
fn ne(&self, other: &FolderLinkMetadata) -> bool
This method tests for !=.
sourceimpl Serialize for FolderLinkMetadata
impl Serialize for FolderLinkMetadata
impl Eq for FolderLinkMetadata
impl StructuralEq for FolderLinkMetadata
impl StructuralPartialEq for FolderLinkMetadata
Auto Trait Implementations
impl RefUnwindSafe for FolderLinkMetadata
impl Send for FolderLinkMetadata
impl Sync for FolderLinkMetadata
impl Unpin for FolderLinkMetadata
impl UnwindSafe for FolderLinkMetadata
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more