#[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>,
}
Available on crate features
async_routes
and dbx_sharing
only.Expand description
The metadata of a folder shared link.
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.url: String
URL of the shared link.
name: String
The linked file name (including extension). This never contains a slash.
link_permissions: LinkPermissions
The 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§
Source§impl 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§
Source§impl Clone for FolderLinkMetadata
impl Clone for FolderLinkMetadata
Source§fn clone(&self) -> FolderLinkMetadata
fn clone(&self) -> FolderLinkMetadata
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for FolderLinkMetadata
impl Debug for FolderLinkMetadata
Source§impl<'de> Deserialize<'de> for FolderLinkMetadata
impl<'de> Deserialize<'de> for FolderLinkMetadata
Source§fn 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
Source§fn from(subtype: FolderLinkMetadata) -> Self
fn from(subtype: FolderLinkMetadata) -> Self
Converts to this type from the input type.
Source§impl PartialEq for FolderLinkMetadata
impl PartialEq for FolderLinkMetadata
Source§impl Serialize for FolderLinkMetadata
impl Serialize for FolderLinkMetadata
impl Eq for FolderLinkMetadata
impl StructuralPartialEq for FolderLinkMetadata
Auto Trait Implementations§
impl Freeze for FolderLinkMetadata
impl RefUnwindSafe for FolderLinkMetadata
impl Send for FolderLinkMetadata
impl Sync for FolderLinkMetadata
impl Unpin for FolderLinkMetadata
impl UnwindSafe for FolderLinkMetadata
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.