pub struct DirectPutContentClaim {
pub size_bytes: u64,
pub sha256: String,
}Expand description
What a direct_put client promises about bytes it has not written yet.
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. The server signs both into the provider write and verifies them again at completion.
Fields§
§size_bytes: u64Complete byte length the client will write.
sha256: StringSHA-256 over the complete payload, lowercase hex.
Trait Implementations§
Source§impl Clone for DirectPutContentClaim
impl Clone for DirectPutContentClaim
Source§fn clone(&self) -> DirectPutContentClaim
fn clone(&self) -> DirectPutContentClaim
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 DirectPutContentClaim
impl Debug for DirectPutContentClaim
Source§impl<'de> Deserialize<'de> for DirectPutContentClaim
impl<'de> Deserialize<'de> for DirectPutContentClaim
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 DirectPutContentClaim
Source§impl PartialEq for DirectPutContentClaim
impl PartialEq for DirectPutContentClaim
Source§impl Serialize for DirectPutContentClaim
impl Serialize for DirectPutContentClaim
impl StructuralPartialEq for DirectPutContentClaim
Auto Trait Implementations§
impl Freeze for DirectPutContentClaim
impl RefUnwindSafe for DirectPutContentClaim
impl Send for DirectPutContentClaim
impl Sync for DirectPutContentClaim
impl Unpin for DirectPutContentClaim
impl UnsafeUnpin for DirectPutContentClaim
impl UnwindSafe for DirectPutContentClaim
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