pub struct BlobRef {
pub id: String,
pub size: u64,
pub content_type: String,
pub hash: Option<Vec<u8>>,
}Expand description
Reference to binary data stored in /v/blobs/{id}.
Binary data flows through the blob storage system rather than being encoded as base64 in text fields.
Fields§
§id: StringUnique identifier, also the path suffix: /v/blobs/{id}
size: u64Size of the blob in bytes.
content_type: StringMIME content type (e.g., “image/png”, “application/octet-stream”).
hash: Option<Vec<u8>>Optional hash for integrity verification (SHA-256).
Implementations§
Trait Implementations§
impl StructuralPartialEq for BlobRef
Auto Trait Implementations§
impl Freeze for BlobRef
impl RefUnwindSafe for BlobRef
impl Send for BlobRef
impl Sync for BlobRef
impl Unpin for BlobRef
impl UnwindSafe for BlobRef
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