pub struct UploadContentClaim {
pub size_bytes: u64,
pub checksum: Checksum,
}Expand description
What an upload client claims about a complete payload.
The server mints the content object’s identity — a client cannot name a key it has not been given — so a direct upload declares only what it can know about its own bytes. Direct PUT binds the claim into the provider write; multipart verifies it against the assembled object at completion.
The digest names its own algorithm because providers do not agree on one: each binds into a presigned write whatever its API can enforce. The deployment advertises which it is, and a claim in any other algorithm is refused at begin rather than signed into a write the provider would reject.
Fields§
§size_bytes: u64Complete byte length the client will write.
checksum: ChecksumWhole-payload checksum in the algorithm required by this operation.
Trait Implementations§
Source§impl Clone for UploadContentClaim
impl Clone for UploadContentClaim
Source§fn clone(&self) -> UploadContentClaim
fn clone(&self) -> UploadContentClaim
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 UploadContentClaim
impl Debug for UploadContentClaim
Source§impl<'de> Deserialize<'de> for UploadContentClaim
impl<'de> Deserialize<'de> for UploadContentClaim
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
impl Eq for UploadContentClaim
Source§impl PartialEq for UploadContentClaim
impl PartialEq for UploadContentClaim
Source§impl Serialize for UploadContentClaim
impl Serialize for UploadContentClaim
impl StructuralPartialEq for UploadContentClaim
Auto Trait Implementations§
impl Freeze for UploadContentClaim
impl RefUnwindSafe for UploadContentClaim
impl Send for UploadContentClaim
impl Sync for UploadContentClaim
impl Unpin for UploadContentClaim
impl UnsafeUnpin for UploadContentClaim
impl UnwindSafe for UploadContentClaim
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