pub struct MultipartUpload {
pub signed_key: String,
pub upload_id: String,
pub part_size: u64,
pub part_count: u16,
}Expand description
A started multipart upload, sent to the browser.
§Examples
let upload: ocre::storage::MultipartUpload =
serde_json::from_str(r#"{"signed_key":"k.s","upload_id":"u","part_size":10485760,"part_count":3}"#).unwrap();
assert_eq!(upload.part_count, 3);Fields§
§signed_key: StringThe object key and its signature, as for a direct upload: the form submits it.
upload_id: StringR2’s id of the upload.
part_size: u64Bytes per part; the last part holds the rest.
part_count: u16Number of parts, numbered from 1.
Trait Implementations§
Source§impl Clone for MultipartUpload
impl Clone for MultipartUpload
Source§fn clone(&self) -> MultipartUpload
fn clone(&self) -> MultipartUpload
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 MultipartUpload
impl Debug for MultipartUpload
Source§impl<'de> Deserialize<'de> for MultipartUpload
impl<'de> Deserialize<'de> for MultipartUpload
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 MultipartUpload
Source§impl PartialEq for MultipartUpload
impl PartialEq for MultipartUpload
Source§fn eq(&self, other: &MultipartUpload) -> bool
fn eq(&self, other: &MultipartUpload) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for MultipartUpload
impl Serialize for MultipartUpload
impl StructuralPartialEq for MultipartUpload
Auto Trait Implementations§
impl Freeze for MultipartUpload
impl RefUnwindSafe for MultipartUpload
impl Send for MultipartUpload
impl Sync for MultipartUpload
impl Unpin for MultipartUpload
impl UnsafeUnpin for MultipartUpload
impl UnwindSafe for MultipartUpload
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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>,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.