pub struct BlobConfig {
pub max_blob_bytes: u64,
pub multipart_threshold_bytes: u64,
pub upload_rules: UploadRules,
pub require_range_support: bool,
pub checksum_alg: Option<String>,
}Expand description
Configuration for blob operations
Fields§
§max_blob_bytes: u64Absolute max size allowed for a single blob (safety guard)
multipart_threshold_bytes: u64If size_hint >= this, prefer multipart/resumable path when available
upload_rules: UploadRulesRules for part-based uploads
require_range_support: boolWhen a range is requested but store can’t do range:
- if false: fall back to full content (HTTP 200 equivalent)
- if true: return Unsupported
checksum_alg: Option<String>Optional: compute checksums during upload/assembly (streaming)
Implementations§
Source§impl BlobConfig
impl BlobConfig
Sourcepub fn with_max_blob_bytes(self, bytes: u64) -> Self
pub fn with_max_blob_bytes(self, bytes: u64) -> Self
Set max blob size
Sourcepub fn with_multipart_threshold(self, bytes: u64) -> Self
pub fn with_multipart_threshold(self, bytes: u64) -> Self
Set multipart threshold
Sourcepub fn with_upload_rules(self, rules: UploadRules) -> Self
pub fn with_upload_rules(self, rules: UploadRules) -> Self
Set upload rules
Sourcepub fn require_range_support(self) -> Self
pub fn require_range_support(self) -> Self
Require range support (no fallback to full content)
Sourcepub fn with_checksum<S: Into<String>>(self, algorithm: S) -> Self
pub fn with_checksum<S: Into<String>>(self, algorithm: S) -> Self
Enable checksum with algorithm
Trait Implementations§
Source§impl Clone for BlobConfig
impl Clone for BlobConfig
Source§fn clone(&self) -> BlobConfig
fn clone(&self) -> BlobConfig
Returns a duplicate of the value. Read more
1.0.0 · 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 BlobConfig
impl Debug for BlobConfig
Auto Trait Implementations§
impl Freeze for BlobConfig
impl RefUnwindSafe for BlobConfig
impl Send for BlobConfig
impl Sync for BlobConfig
impl Unpin for BlobConfig
impl UnwindSafe for BlobConfig
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 moreCreates a shared type from an unshared type.