#[non_exhaustive]pub struct BlobConvertResponse {
pub account_id: Id,
pub created: Option<HashMap<String, BlobObject>>,
pub not_created: Option<HashMap<String, SetError>>,
pub extra: Map<String, Value>,
}Expand description
Response to a Blob/convert call.
Spec: draft-ietf-jmap-blobext-01 §8 — response has the same structure as
Blob/set: a created map of creation id → BlobObject for each
successful conversion, and a notCreated map for failures.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.account_id: IdAccount the conversion was run against.
created: Option<HashMap<String, BlobObject>>Successful conversions: maps each creation id to the resulting blob.
not_created: Option<HashMap<String, SetError>>Failed conversions: maps each creation id to a SetError.
extra: Map<String, Value>Catch-all for vendor / site / private extension fields not covered by the typed fields above. Preserves unknown fields across deserialize/serialize round-trip per workspace extras-preservation policy (see workspace AGENTS.md).
Trait Implementations§
Source§impl Clone for BlobConvertResponse
impl Clone for BlobConvertResponse
Source§fn clone(&self) -> BlobConvertResponse
fn clone(&self) -> BlobConvertResponse
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for BlobConvertResponse
impl Debug for BlobConvertResponse
Source§impl<'de> Deserialize<'de> for BlobConvertResponse
impl<'de> Deserialize<'de> for BlobConvertResponse
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for BlobConvertResponse
impl RefUnwindSafe for BlobConvertResponse
impl Send for BlobConvertResponse
impl Sync for BlobConvertResponse
impl Unpin for BlobConvertResponse
impl UnsafeUnpin for BlobConvertResponse
impl UnwindSafe for BlobConvertResponse
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