pub struct DirElem {
pub type: String,
pub length: u64,
pub name: String,
pub last_modified: u64,
}
Expand description
目录文件列表的元素
Fields§
§type: String
目录/文件的类型。如果是目录,则为 folder
,如果是文件,则为文件的类型,
length: u64
文件大小(字节)
name: String
文件/目录名
last_modified: u64
最后修改时间
Trait Implementations§
Source§impl<'de> Deserialize<'de> for DirElem
impl<'de> Deserialize<'de> for DirElem
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 DirElem
impl RefUnwindSafe for DirElem
impl Send for DirElem
impl Sync for DirElem
impl Unpin for DirElem
impl UnwindSafe for DirElem
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