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