pub struct PendingObjectUpload {
pub key: ObjectKey,
pub expected_content_type: String,
pub expected_size_bytes: u64,
pub expected_sha256: String,
pub expected_attributes: BTreeMap<String, String>,
pub capability_expires_at: DateTime<Utc>,
}Expand description
Trusted server-side record for one issued upload capability.
Persist this value in application-owned state. Do not accept a replacement from an untrusted client as authorization.
Fields§
§key: ObjectKey§expected_content_type: String§expected_size_bytes: u64§expected_sha256: String§expected_attributes: BTreeMap<String, String>§capability_expires_at: DateTime<Utc>Expiry of the bearer upload capability, not of the pending record.
Verification may happen after this timestamp when the provider accepted the upload before the capability expired. Pending-record retention and cleanup remain application-owned.
Trait Implementations§
Source§impl Clone for PendingObjectUpload
impl Clone for PendingObjectUpload
Source§fn clone(&self) -> PendingObjectUpload
fn clone(&self) -> PendingObjectUpload
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 PendingObjectUpload
impl Debug for PendingObjectUpload
Source§impl<'de> Deserialize<'de> for PendingObjectUpload
impl<'de> Deserialize<'de> for PendingObjectUpload
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 PendingObjectUpload
Source§impl PartialEq for PendingObjectUpload
impl PartialEq for PendingObjectUpload
Source§impl Serialize for PendingObjectUpload
impl Serialize for PendingObjectUpload
impl StructuralPartialEq for PendingObjectUpload
Auto Trait Implementations§
impl Freeze for PendingObjectUpload
impl RefUnwindSafe for PendingObjectUpload
impl Send for PendingObjectUpload
impl Sync for PendingObjectUpload
impl Unpin for PendingObjectUpload
impl UnsafeUnpin for PendingObjectUpload
impl UnwindSafe for PendingObjectUpload
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