#[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
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).
Constraint: keys in extra MUST NOT collide with the
typed-field wire names above (the camelCase spelling — e.g.
"accountId", "ids", "properties", "blobIds",
"fromAccountId", etc.). On collision the typed-field value
wins on the wire and the extra value is silently dropped at
serialization. Place vendor extensions under vendor-prefixed
keys (e.g. "acmeCorpFoo") to avoid the collision class.
Trait Implementations§
Source§impl Clone for BlobObject
impl Clone for BlobObject
Source§fn clone(&self) -> BlobObject
fn clone(&self) -> BlobObject
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more