#[non_exhaustive]pub struct ProviderFileMetadata {Show 13 fields
pub shape: String,
pub id: String,
pub filename: String,
pub object_type: Option<String>,
pub object: Option<String>,
pub mime_type: Option<String>,
pub size_bytes: Option<u64>,
pub bytes: Option<u64>,
pub created_at: Value,
pub downloadable: Option<bool>,
pub purpose: Option<String>,
pub status: Option<String>,
pub extra: HashMap<String, Value>,
}Expand description
File metadata in the shape negotiated with a backing provider.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.shape: String§id: String§filename: String§object_type: Option<String>§object: Option<String>§mime_type: Option<String>§size_bytes: Option<u64>§bytes: Option<u64>§created_at: Value§downloadable: Option<bool>§purpose: Option<String>§status: Option<String>§extra: HashMap<String, Value>Trait Implementations§
Source§impl Clone for ProviderFileMetadata
impl Clone for ProviderFileMetadata
Source§fn clone(&self) -> ProviderFileMetadata
fn clone(&self) -> ProviderFileMetadata
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 ProviderFileMetadata
impl Debug for ProviderFileMetadata
Source§impl<'de> Deserialize<'de> for ProviderFileMetadata
impl<'de> Deserialize<'de> for ProviderFileMetadata
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
Auto Trait Implementations§
impl Freeze for ProviderFileMetadata
impl RefUnwindSafe for ProviderFileMetadata
impl Send for ProviderFileMetadata
impl Sync for ProviderFileMetadata
impl Unpin for ProviderFileMetadata
impl UnsafeUnpin for ProviderFileMetadata
impl UnwindSafe for ProviderFileMetadata
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