Struct dropbox_sdk::sharing::InsufficientPlan[][src]

#[non_exhaustive]pub struct InsufficientPlan {
    pub message: String,
    pub upsell_url: Option<String>,
}
This is supported on crate feature dbx_sharing only.

Fields (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.
message: String

A message to tell the user to upgrade in order to support expected action.

upsell_url: Option<String>

A URL to send the user to in order to obtain the account type they need, e.g. upgrading. Absent if there is no action the user can take to upgrade.

Implementations

impl InsufficientPlan[src]

pub fn new(message: String) -> Self[src]

pub fn with_upsell_url(self, value: String) -> Self[src]

Trait Implementations

impl Clone for InsufficientPlan[src]

impl Debug for InsufficientPlan[src]

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

impl PartialEq<InsufficientPlan> for InsufficientPlan[src]

impl Serialize for InsufficientPlan[src]

impl StructuralPartialEq for InsufficientPlan[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> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.