pub struct FsGetMetadataResponse {
pub created_at_ms: i64,
pub is_directory: bool,
pub is_file: bool,
pub is_symlink: bool,
pub modified_at_ms: i64,
}Expand description
Metadata returned by fs/getMetadata.
JSON schema
{
"title": "FsGetMetadataResponse",
"description": "Metadata returned by `fs/getMetadata`.",
"type": "object",
"required": [
"createdAtMs",
"isDirectory",
"isFile",
"isSymlink",
"modifiedAtMs"
],
"properties": {
"createdAtMs": {
"description": "File creation time in Unix milliseconds when available, otherwise `0`.",
"type": "integer",
"format": "int64"
},
"isDirectory": {
"description": "Whether the path resolves to a directory.",
"type": "boolean"
},
"isFile": {
"description": "Whether the path resolves to a regular file.",
"type": "boolean"
},
"isSymlink": {
"description": "Whether the path itself is a symbolic link.",
"type": "boolean"
},
"modifiedAtMs": {
"description": "File modification time in Unix milliseconds when available, otherwise `0`.",
"type": "integer",
"format": "int64"
}
},
"$schema": "http://json-schema.org/draft-07/schema#"
}Fields§
§created_at_ms: i64File creation time in Unix milliseconds when available, otherwise 0.
is_directory: boolWhether the path resolves to a directory.
is_file: boolWhether the path resolves to a regular file.
is_symlink: boolWhether the path itself is a symbolic link.
modified_at_ms: i64File modification time in Unix milliseconds when available, otherwise 0.
Trait Implementations§
Source§impl Clone for FsGetMetadataResponse
impl Clone for FsGetMetadataResponse
Source§fn clone(&self) -> FsGetMetadataResponse
fn clone(&self) -> FsGetMetadataResponse
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 FsGetMetadataResponse
impl Debug for FsGetMetadataResponse
Source§impl<'de> Deserialize<'de> for FsGetMetadataResponse
impl<'de> Deserialize<'de> for FsGetMetadataResponse
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 FsGetMetadataResponse
impl RefUnwindSafe for FsGetMetadataResponse
impl Send for FsGetMetadataResponse
impl Sync for FsGetMetadataResponse
impl Unpin for FsGetMetadataResponse
impl UnsafeUnpin for FsGetMetadataResponse
impl UnwindSafe for FsGetMetadataResponse
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