pub struct DirEntry {
pub entry_type: DirEntryType,
pub name: String,
pub path: String,
pub sha: String,
pub size: Option<u64>,
}Expand description
An entry within a directory listing.
Fields§
§entry_type: DirEntryTypeType of entry ("file" or "dir").
name: StringEntry name.
path: StringEntry path.
sha: StringObject SHA.
size: Option<u64>Size in bytes (files only).
Trait Implementations§
Source§impl<'de> Deserialize<'de> for DirEntry
impl<'de> Deserialize<'de> for DirEntry
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 DirEntry
impl RefUnwindSafe for DirEntry
impl Send for DirEntry
impl Sync for DirEntry
impl Unpin for DirEntry
impl UnwindSafe for DirEntry
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