Struct dropbox_sdk::sharing::VisibilityPolicy
source · [−]#[non_exhaustive]pub struct VisibilityPolicy {
pub policy: RequestedVisibility,
pub resolved_policy: AlphaResolvedVisibility,
pub allowed: bool,
pub disallowed_reason: Option<VisibilityPolicyDisallowedReason>,
}dbx_sharing only.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.policy: RequestedVisibilityThis is the value to submit when saving the visibility setting.
resolved_policy: AlphaResolvedVisibilityThis is what the effective policy would be, if you selected this option. The resolved policy is obtained after considering external effects such as shared folder settings and team policy. This value is guaranteed to be provided.
allowed: boolWhether the user is permitted to set the visibility to this policy.
disallowed_reason: Option<VisibilityPolicyDisallowedReason>If allowed is false, this will provide the reason that the user is not permitted to set
the visibility to this policy.
Implementations
sourceimpl VisibilityPolicy
impl VisibilityPolicy
pub fn new(
policy: RequestedVisibility,
resolved_policy: AlphaResolvedVisibility,
allowed: bool
) -> Self
pub fn with_disallowed_reason(
self,
value: VisibilityPolicyDisallowedReason
) -> Self
Trait Implementations
sourceimpl Clone for VisibilityPolicy
impl Clone for VisibilityPolicy
sourcefn clone(&self) -> VisibilityPolicy
fn clone(&self) -> VisibilityPolicy
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 VisibilityPolicy
impl Debug for VisibilityPolicy
sourceimpl<'de> Deserialize<'de> for VisibilityPolicy
impl<'de> Deserialize<'de> for VisibilityPolicy
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<VisibilityPolicy> for VisibilityPolicy
impl PartialEq<VisibilityPolicy> for VisibilityPolicy
sourcefn eq(&self, other: &VisibilityPolicy) -> bool
fn eq(&self, other: &VisibilityPolicy) -> bool
This method tests for self and other values to be equal, and is used
by ==. Read more
sourcefn ne(&self, other: &VisibilityPolicy) -> bool
fn ne(&self, other: &VisibilityPolicy) -> bool
This method tests for !=.
sourceimpl Serialize for VisibilityPolicy
impl Serialize for VisibilityPolicy
impl StructuralPartialEq for VisibilityPolicy
Auto Trait Implementations
impl RefUnwindSafe for VisibilityPolicy
impl Send for VisibilityPolicy
impl Sync for VisibilityPolicy
impl Unpin for VisibilityPolicy
impl UnwindSafe for VisibilityPolicy
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
toowned_clone_into)Uses borrowed data to replace owned data, usually by cloning. Read more