[][src]Struct dropbox_sdk::sharing::LinkPermissions

pub struct LinkPermissions {
    pub can_revoke: bool,
    pub resolved_visibility: Option<ResolvedVisibility>,
    pub requested_visibility: Option<RequestedVisibility>,
    pub revoke_failure_reason: Option<SharedLinkAccessFailureReason>,
    pub effective_audience: Option<LinkAudience>,
    pub link_access_level: Option<LinkAccessLevel>,
}
This is supported on crate feature dbx_sharing only.

Fields

can_revoke: bool

Whether the caller can revoke the shared link.

resolved_visibility: Option<ResolvedVisibility>

The current visibility of the link after considering the shared links policies of the the team (in case the link's owner is part of a team) and the shared folder (in case the linked file is part of a shared folder). This field is shown only if the caller has access to this info (the link's owner always has access to this data). For some links, an effective_audience value is returned instead.

requested_visibility: Option<RequestedVisibility>

The shared link's requested visibility. This can be overridden by the team and shared folder policies. The final visibility, after considering these policies, can be found in resolved_visibility. This is shown only if the caller is the link's owner and resolved_visibility is returned instead of effective_audience.

revoke_failure_reason: Option<SharedLinkAccessFailureReason>

The failure reason for revoking the link. This field will only be present if the can_revoke is false.

effective_audience: Option<LinkAudience>

The type of audience who can benefit from the access level specified by the link_access_level field.

link_access_level: Option<LinkAccessLevel>

The access level that the link will grant to its users. A link can grant additional rights to a user beyond their current access level. For example, if a user was invited as a viewer to a file, and then opens a link with link_access_level set to editor, then they will gain editor privileges. The link_access_level is a property of the link, and does not depend on who is calling this API. In particular, link_access_level does not take into account the API caller's current permissions to the content.

Implementations

impl LinkPermissions[src]

pub fn new(can_revoke: bool) -> Self[src]

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

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

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

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

Trait Implementations

impl Debug for LinkPermissions[src]

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

impl Serialize for LinkPermissions[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.