pub struct PendingUpload {
pub key: String,
pub upload_id: String,
pub initiated: String,
}Expand description
A multipart upload not completed or aborted yet, as list_multipart_uploads reports it.
§Examples
let upload = ocre::storage::PendingUpload {
key: "videos/1/source.mp4".into(),
upload_id: "u1".into(),
initiated: "2026-10-18T10:00:00.000Z".into(),
};
assert_eq!(upload.key, "videos/1/source.mp4");Fields§
§key: StringThe object the upload will create.
upload_id: StringR2’s id of the upload.
initiated: StringWhen it started, as text that sorts in time order (ISO 8601 on R2).
Trait Implementations§
Source§impl Clone for PendingUpload
impl Clone for PendingUpload
Source§fn clone(&self) -> PendingUpload
fn clone(&self) -> PendingUpload
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 PendingUpload
impl Debug for PendingUpload
Source§impl<'de> Deserialize<'de> for PendingUpload
impl<'de> Deserialize<'de> for PendingUpload
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 PendingUpload
Source§impl PartialEq for PendingUpload
impl PartialEq for PendingUpload
Source§fn eq(&self, other: &PendingUpload) -> bool
fn eq(&self, other: &PendingUpload) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for PendingUpload
impl Serialize for PendingUpload
impl StructuralPartialEq for PendingUpload
Auto Trait Implementations§
impl Freeze for PendingUpload
impl RefUnwindSafe for PendingUpload
impl Send for PendingUpload
impl Sync for PendingUpload
impl Unpin for PendingUpload
impl UnsafeUnpin for PendingUpload
impl UnwindSafe for PendingUpload
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.§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