[][src]Enum melib::backends::jmap::rfc8620::SetError

pub enum SetError {
    Forbidden(Option<String>),
    OverQuota(Option<String>),
    TooLarge(Option<String>),
    RateLimit(Option<String>),
    NotFound(Option<String>),
    InvalidPatch(Option<String>),
    WillDestroy(Option<String>),
    InvalidProperties {
        description: Option<String>,
        properties: Vec<String>,
    },
    Singleton(Option<String>),
    RequestTooLarge(Option<String>),
    StateMismatch(Option<String>),
}

Variants

Forbidden(Option<String>)

(create; update; destroy). The create/update/destroy would violate an ACL or other permissions policy.

OverQuota(Option<String>)

(create; update). The create would exceed a server- defined limit on the number or total size of objects of this type.

TooLarge(Option<String>)

(create; update). The create/update would result in an object that exceeds a server-defined limit for the maximum size of a single object of this type.

RateLimit(Option<String>)

(create). Too many objects of this type have been created recently, and a server-defined rate limit has been reached. It may work if tried again later.

NotFound(Option<String>)

(update; destroy). The id given to update/destroy cannot be found.

InvalidPatch(Option<String>)

(update). The PatchObject given to update the record was not a valid patch (see the patch description).

WillDestroy(Option<String>)

(update). The client requested that an object be both updated and destroyed in the same /set request, and the server has decided to therefore ignore the update.

InvalidProperties

(create; update). The record given is invalid in some way.

Fields of InvalidProperties

description: Option<String>properties: Vec<String>
Singleton(Option<String>)

(create; destroy). This is a singleton type, so you cannot create another one or destroy the existing one.

RequestTooLarge(Option<String>)
StateMismatch(Option<String>)

Trait Implementations

impl Debug for SetError[src]

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

impl Display for SetError[src]

impl Serialize for SetError[src]

Auto Trait Implementations

impl RefUnwindSafe for SetError

impl Send for SetError

impl Sync for SetError

impl Unpin for SetError

impl UnwindSafe for SetError

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> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToString for T where
    T: Display + ?Sized
[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.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 

impl<T> WithSubscriber for T[src]