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