[−][src]Struct melib::backends::jmap::rfc8620::Changes
#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:
-
accountId: "Id" The id of the account to use.
-
sinceState: "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.
-
maxChanges: "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
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]
OBJ: Debug + Serialize,
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]
OBJ: Debug + Serialize,
impl<'de, OBJ: Object> Deserialize<'de> for Changes<OBJ> where
OBJ: Debug + Serialize,
OBJ: Deserialize<'de>,
[src]
OBJ: Debug + Serialize,
OBJ: Deserialize<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl<OBJ: Object> Serialize for Changes<OBJ> where
OBJ: Debug + Serialize,
OBJ: Serialize,
[src]
OBJ: Debug + Serialize,
OBJ: Serialize,
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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<T> From<T> for T
[src]
impl<T> Instrument for T
[src]
fn instrument(self, span: Span) -> Instrumented<Self>
[src]
fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,
fn vzip(self) -> V
impl<T> WithSubscriber for T
[src]
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
[src]
S: Into<Dispatch>,