pub struct FileObject {
pub name: String,
pub id: Option<String>,
pub bucket_id: Option<String>,
pub created_at: Option<DateTime<Utc>>,
pub updated_at: Option<DateTime<Utc>>,
pub last_accessed_at: Option<DateTime<Utc>>,
pub metadata: Option<Map<String, Value>>,
}Expand description
An object or folder entry. Folder entries have no id, timestamps, or metadata.
Fields§
§name: StringName relative to the listed prefix (or the full path for remove results).
id: Option<String>Object id. None for folders.
bucket_id: Option<String>Bucket id, when the API includes it.
created_at: Option<DateTime<Utc>>Creation time.
updated_at: Option<DateTime<Utc>>Last update time.
last_accessed_at: Option<DateTime<Utc>>Last access time.
metadata: Option<Map<String, Value>>Object metadata (size, mimetype, eTag, cacheControl, …).
Trait Implementations§
Source§impl Clone for FileObject
impl Clone for FileObject
Source§impl Debug for FileObject
impl Debug for FileObject
Source§impl<'de> Deserialize<'de> for FileObject
impl<'de> Deserialize<'de> for FileObject
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 FileObject
Source§impl PartialEq for FileObject
impl PartialEq for FileObject
impl StructuralPartialEq for FileObject
Auto Trait Implementations§
impl Freeze for FileObject
impl RefUnwindSafe for FileObject
impl Send for FileObject
impl Sync for FileObject
impl Unpin for FileObject
impl UnsafeUnpin for FileObject
impl UnwindSafe for FileObject
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.