pub struct Invocation {
pub name: String,
pub arguments: Value,
pub call_id: String,
}Expand description
A JMAP method invocation (RFC 8620 §3.2).
On the wire this is a 3-element JSON array
[name, arguments, callId]; in Rust the elements are named fields.
From conversions to and from (String, Value, String) are
provided for code that already holds the tuple form.
Fields§
§name: StringMethod name, e.g. "Email/get", or "error" in a response.
arguments: ValueMethod arguments (request) or result (response) object.
call_id: StringClient-chosen method call id, echoed back in the response.
Implementations§
Trait Implementations§
Source§impl Clone for Invocation
impl Clone for Invocation
Source§impl Debug for Invocation
impl Debug for Invocation
Source§impl<'de> Deserialize<'de> for Invocation
impl<'de> Deserialize<'de> for Invocation
Source§fn 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
Source§impl From<Invocation> for (String, Value, String)
impl From<Invocation> for (String, Value, String)
Source§fn from(inv: Invocation) -> Self
fn from(inv: Invocation) -> Self
Converts to this type from the input type.
Source§impl PartialEq for Invocation
impl PartialEq for Invocation
Source§impl Serialize for Invocation
impl Serialize for Invocation
impl StructuralPartialEq for Invocation
Auto Trait Implementations§
impl Freeze for Invocation
impl RefUnwindSafe for Invocation
impl Send for Invocation
impl Sync for Invocation
impl Unpin for Invocation
impl UnsafeUnpin for Invocation
impl UnwindSafe for Invocation
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more