pub struct OperationsStatResponse {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
OperationsStatResponse
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 OperationsStatResponse
impl Clone for OperationsStatResponse
Source§fn clone(&self) -> OperationsStatResponse
fn clone(&self) -> OperationsStatResponse
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 OperationsStatResponse
impl Debug for OperationsStatResponse
Source§impl<'de> Deserialize<'de> for OperationsStatResponse
impl<'de> Deserialize<'de> for OperationsStatResponse
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<&OperationsStatResponse> for OperationsStatResponse
impl From<&OperationsStatResponse> for OperationsStatResponse
Source§fn from(value: &OperationsStatResponse) -> Self
fn from(value: &OperationsStatResponse) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for OperationsStatResponse
impl RefUnwindSafe for OperationsStatResponse
impl Send for OperationsStatResponse
impl Sync for OperationsStatResponse
impl Unpin for OperationsStatResponse
impl UnwindSafe for OperationsStatResponse
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