pub struct OperationsStatResponseItem {Show 14 fields
pub encrypted: Option<String>,
pub encrypted_path: Option<String>,
pub hashes: HashMap<String, String>,
pub id: Option<String>,
pub is_bucket: Option<bool>,
pub is_dir: bool,
pub metadata: Map<String, Value>,
pub mime_type: String,
pub mod_time: String,
pub name: String,
pub orig_id: Option<String>,
pub path: String,
pub size: f64,
pub tier: Option<String>,
}Expand description
OperationsStatResponseItem
JSON schema
{
"type": "object",
"required": [
"IsDir",
"MimeType",
"ModTime",
"Name",
"Path",
"Size"
],
"properties": {
"Encrypted": {
"description": "Encrypted entry name when using crypt remotes.",
"type": "string"
},
"EncryptedPath": {
"description": "Encrypted path when using crypt remotes.",
"type": "string"
},
"Hashes": {
"description": "Hash digests keyed by algorithm when requested.",
"type": "object",
"additionalProperties": {
"type": "string"
}
},
"ID": {
"description": "Backend-specific identifier when provided.",
"type": "string"
},
"IsBucket": {
"description": "True for bucket/root entries on bucket-based
remotes.",
"type": "boolean"
},
"IsDir": {
"description": "True if the entry is a directory.",
"type": "boolean"
},
"Metadata": {
"description": "Backend-provided metadata map.",
"type": "object",
"additionalProperties": {}
},
"MimeType": {
"description": "MIME type where available.",
"type": "string"
},
"ModTime": {
"description": "Modification timestamp in RFC3339 format.",
"type": "string"
},
"Name": {
"description": "Base name of the entry.",
"type": "string"
},
"OrigID": {
"description": "Original backend identifier when recorded.",
"type": "string"
},
"Path": {
"description": "Path relative to the remote root.",
"type": "string"
},
"Size": {
"description": "Object size in bytes.",
"type": "number"
},
"Tier": {
"description": "Storage class or tier, if supplied by the
backend.",
"type": "string"
}
}
}Fields§
§encrypted: Option<String>Encrypted entry name when using crypt remotes.
encrypted_path: Option<String>Encrypted path when using crypt remotes.
hashes: HashMap<String, String>Hash digests keyed by algorithm when requested.
id: Option<String>Backend-specific identifier when provided.
is_bucket: Option<bool>True for bucket/root entries on bucket-based remotes.
is_dir: boolTrue if the entry is a directory.
metadata: Map<String, Value>Backend-provided metadata map.
mime_type: StringMIME type where available.
mod_time: StringModification timestamp in RFC3339 format.
name: StringBase name of the entry.
orig_id: Option<String>Original backend identifier when recorded.
path: StringPath relative to the remote root.
size: f64§tier: Option<String>Storage class or tier, if supplied by the backend.
Trait Implementations§
Source§impl Clone for OperationsStatResponseItem
impl Clone for OperationsStatResponseItem
Source§fn clone(&self) -> OperationsStatResponseItem
fn clone(&self) -> OperationsStatResponseItem
Returns a duplicate of the value. Read more
1.0.0 · 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 OperationsStatResponseItem
impl Debug for OperationsStatResponseItem
Source§impl<'de> Deserialize<'de> for OperationsStatResponseItem
impl<'de> Deserialize<'de> for OperationsStatResponseItem
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
Source§impl From<&OperationsStatResponseItem> for OperationsStatResponseItem
impl From<&OperationsStatResponseItem> for OperationsStatResponseItem
Source§fn from(value: &OperationsStatResponseItem) -> Self
fn from(value: &OperationsStatResponseItem) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for OperationsStatResponseItem
impl RefUnwindSafe for OperationsStatResponseItem
impl Send for OperationsStatResponseItem
impl Sync for OperationsStatResponseItem
impl Unpin for OperationsStatResponseItem
impl UnwindSafe for OperationsStatResponseItem
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