pub struct MultipartUploadPartRequest { /* private fields */ }Expand description
Serializable protocol DTO sent from a trusted signer to an uploader.
This value contains a bearer URL. Serialization is therefore an explicit
secret-exposure boundary even though Debug remains redacted. Its primitive
fields are a transport representation of an already validated and signed
request; deserializing this DTO does not establish a new trusted validation
boundary.
Implementations§
Source§impl MultipartUploadPartRequest
impl MultipartUploadPartRequest
Sourcepub const fn part_number(&self) -> u16
pub const fn part_number(&self) -> u16
Returns the part number this request may upload.
Sourcepub const fn content_length(&self) -> u64
pub const fn content_length(&self) -> u64
Returns the exact required request-body length.
Sourcepub fn content_md5(&self) -> Option<&str>
pub fn content_md5(&self) -> Option<&str>
Returns the signed Base64 Content-MD5, when enabled.
Sourcepub fn expose_url(&self) -> &str
pub fn expose_url(&self) -> &str
Deliberately exposes the bearer URL to the uploader.
Sourcepub fn required_headers(&self) -> impl ExactSizeIterator<Item = (&str, &str)>
pub fn required_headers(&self) -> impl ExactSizeIterator<Item = (&str, &str)>
Returns headers that the uploader must replay exactly.
Sourcepub const fn expires_at_unix_seconds(&self) -> u64
pub const fn expires_at_unix_seconds(&self) -> u64
Returns the approximate Unix expiration timestamp in seconds.
Trait Implementations§
Source§impl Clone for MultipartUploadPartRequest
impl Clone for MultipartUploadPartRequest
Source§fn clone(&self) -> MultipartUploadPartRequest
fn clone(&self) -> MultipartUploadPartRequest
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 MultipartUploadPartRequest
impl Debug for MultipartUploadPartRequest
Source§impl<'de> Deserialize<'de> for MultipartUploadPartRequest
impl<'de> Deserialize<'de> for MultipartUploadPartRequest
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 MultipartUploadPartRequest
impl RefUnwindSafe for MultipartUploadPartRequest
impl Send for MultipartUploadPartRequest
impl Sync for MultipartUploadPartRequest
impl Unpin for MultipartUploadPartRequest
impl UnsafeUnpin for MultipartUploadPartRequest
impl UnwindSafe for MultipartUploadPartRequest
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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.