pub struct StagingAsset {
pub name: String,
pub path: String,
pub size: u64,
pub sha256: String,
pub media_type: String,
pub kind: StagingAssetKind,
}Expand description
One ordered staged file record.
Fields§
§name: StringSafe flat asset name.
path: StringLocal relative path under payload root (flat, equals name).
size: u64Exact byte size.
sha256: StringLowercase SHA-256 hex.
media_type: StringMedia type for upload.
kind: StagingAssetKindSemantic kind.
Trait Implementations§
Source§impl Clone for StagingAsset
impl Clone for StagingAsset
Source§impl Debug for StagingAsset
impl Debug for StagingAsset
Source§impl<'de> Deserialize<'de> for StagingAsset
impl<'de> Deserialize<'de> for StagingAsset
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 StagingAsset
Source§impl PartialEq for StagingAsset
impl PartialEq for StagingAsset
Source§impl Serialize for StagingAsset
impl Serialize for StagingAsset
impl StructuralPartialEq for StagingAsset
Auto Trait Implementations§
impl Forget for StagingAsset
impl Freeze for StagingAsset
impl Move for StagingAsset
impl RefUnwindSafe for StagingAsset
impl Send for StagingAsset
impl Sync for StagingAsset
impl Unpin for StagingAsset
impl UnsafeUnpin for StagingAsset
impl UnwindSafe for StagingAsset
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
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>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.