#[non_exhaustive]pub struct BlobObject {
pub id: Id,
pub content_type: Option<String>,
pub size: Option<u64>,
pub extra: Map<String, Value>,
}Expand description
A blob object returned in a Blob/convert (or Blob/set) response.
Spec: draft-ietf-jmap-blobext-01 §4 (BlobObject properties)
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.id: IdThe blobId of the created blob.
content_type: Option<String>MIME type of the blob, or None if the server did not report it.
size: Option<u64>Size in octets. None if the server deferred generation and does
not yet know the final size (spec §8 allows omitting size for
deferred conversions).
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 BlobObject
impl Clone for BlobObject
Source§fn clone(&self) -> BlobObject
fn clone(&self) -> BlobObject
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 BlobObject
impl Debug for BlobObject
Source§impl<'de> Deserialize<'de> for BlobObject
impl<'de> Deserialize<'de> for BlobObject
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 BlobObject
impl RefUnwindSafe for BlobObject
impl Send for BlobObject
impl Sync for BlobObject
impl Unpin for BlobObject
impl UnsafeUnpin for BlobObject
impl UnwindSafe for BlobObject
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