pub struct DirContent {
pub type: Type,
pub name: Option<String>,
pub path: Option<String>,
pub sha: Option<String>,
pub child_count: i64,
pub entries: Vec<DirEntry>,
pub next_cursor: Option<String>,
pub has_more: bool,
}Expand description
A directory listing with correctly typed entries.
Fields§
§type: TypeAlways "dir".
name: Option<String>Directory name, or None for the repository root.
path: Option<String>Directory path relative to the repository root.
sha: Option<String>Tree SHA.
child_count: i64Total number of children in this directory.
entries: Vec<DirEntry>Directory entries (files, symlinks, or subdirectories).
next_cursor: Option<String>Cursor for paginating entries, or None when there are no more pages.
has_more: boolWhether more entries are available beyond this page.
Trait Implementations§
Source§impl Clone for DirContent
impl Clone for DirContent
Source§fn clone(&self) -> DirContent
fn clone(&self) -> DirContent
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 DirContent
impl Debug for DirContent
Source§impl<'de> Deserialize<'de> for DirContent
impl<'de> Deserialize<'de> for DirContent
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 PartialEq for DirContent
impl PartialEq for DirContent
Source§impl Serialize for DirContent
impl Serialize for DirContent
impl StructuralPartialEq for DirContent
Auto Trait Implementations§
impl Freeze for DirContent
impl RefUnwindSafe for DirContent
impl Send for DirContent
impl Sync for DirContent
impl Unpin for DirContent
impl UnwindSafe for DirContent
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