[][src]Struct melib::backends::jmap::rfc8620::Changes

pub struct Changes<OBJ: Object> where
    OBJ: Debug + Serialize
{ pub account_id: Id<Account>, pub since_state: State<OBJ>, pub max_changes: Option<u64>, _ph: PhantomData<fn() -> OBJ>, }

#changes

The "Foo/changes" method allows a client to efficiently update the state of its Foo cache to match the new state on the server. It takes the following arguments:

Fields

account_id: Id<Account>since_state: State<OBJ>max_changes: Option<u64>_ph: PhantomData<fn() -> OBJ>

Implementations

impl<OBJ: Object> Changes<OBJ> where
    OBJ: Debug + Serialize
[src]

pub fn new() -> Self[src]

pub fn account_id(self, new_val: Id<Account>) -> Self[src]

  • accountId: "Id"

    The id of the account to use.

pub fn since_state(self, new_val: State<OBJ>) -> Self[src]

  • since_state: "String" The current state of the client. This is the string that was returned as the "state" argument in the "Foo/get" response. The server will return the changes that have occurred since this state.

pub fn max_changes(self, new_val: Option<u64>) -> Self[src]

  • max_changes: "UnsignedInt|null" The maximum number of ids to return in the response. The server MAY choose to return fewer than this value but MUST NOT return more. If not given by the client, the server may choose how many to return. If supplied by the client, the value MUST be a positive integer greater than 0. If a value outside of this range is given, the server MUST re

Trait Implementations

impl<OBJ: Debug + Object> Debug for Changes<OBJ> where
    OBJ: Debug + Serialize
[src]

impl<'de, OBJ: Object> Deserialize<'de> for Changes<OBJ> where
    OBJ: Debug + Serialize,
    OBJ: Deserialize<'de>, 
[src]

impl<OBJ: Object> Serialize for Changes<OBJ> where
    OBJ: Debug + Serialize,
    OBJ: Serialize
[src]

Auto Trait Implementations

impl<OBJ> RefUnwindSafe for Changes<OBJ>

impl<OBJ> Send for Changes<OBJ>

impl<OBJ> Sync for Changes<OBJ>

impl<OBJ> Unpin for Changes<OBJ>

impl<OBJ> UnwindSafe for Changes<OBJ>

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, 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]