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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more