pub struct JmapSet<T> { /* private fields */ }Expand description
Generic I/O-free coroutine for the JMAP Foo/set method (RFC 8620 §5.3).
Implementations§
Source§impl<T: DeserializeOwned> JmapSet<T>
impl<T: DeserializeOwned> JmapSet<T>
Sourcepub fn new<C: Serialize, U: Serialize>(
account_id: String,
http_auth: &SecretString,
api_url: &Url,
method: impl Into<String>,
capabilities: Vec<String>,
opts: JmapSetOptions<C, U>,
) -> Result<Self, JmapSetError>
pub fn new<C: Serialize, U: Serialize>( account_id: String, http_auth: &SecretString, api_url: &Url, method: impl Into<String>, capabilities: Vec<String>, opts: JmapSetOptions<C, U>, ) -> Result<Self, JmapSetError>
Builds a single-call Foo/set batch and wraps it in JmapSend.
Trait Implementations§
Source§impl<T: DeserializeOwned> JmapCoroutine for JmapSet<T>
impl<T: DeserializeOwned> JmapCoroutine for JmapSet<T>
Source§type Return = Result<JmapSetOutput<T>, JmapSetError>
type Return = Result<JmapSetOutput<T>, JmapSetError>
Terminal value. By convention
Result<Output, Error>.Auto Trait Implementations§
impl<T> Freeze for JmapSet<T>
impl<T> RefUnwindSafe for JmapSet<T>where
T: RefUnwindSafe,
impl<T> Send for JmapSet<T>where
T: Send,
impl<T> Sync for JmapSet<T>where
T: Sync,
impl<T> Unpin for JmapSet<T>where
T: Unpin,
impl<T> UnsafeUnpin for JmapSet<T>
impl<T> UnwindSafe for JmapSet<T>where
T: UnwindSafe,
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