pub struct TreeEntryJson {
pub mode: Option<String>,
pub name: Option<String>,
pub path: Option<String>,
pub size: Option<i32>,
pub type: Option<String>,
}Fields§
§mode: Option<String>Mode is the octal git file mode ("100644", "040000", "120000").
name: Option<String>Name is the entry’s own name, no directory part.
path: Option<String>Path is the entry’s full repo-relative path.
size: Option<i32>Size is the file’s byte length; 0 for a directory.
type: Option<String>Type is "tree" for a directory, "blob" for a file.
Implementations§
Source§impl TreeEntryJson
impl TreeEntryJson
pub fn new() -> TreeEntryJson
Trait Implementations§
Source§impl Clone for TreeEntryJson
impl Clone for TreeEntryJson
Source§fn clone(&self) -> TreeEntryJson
fn clone(&self) -> TreeEntryJson
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 TreeEntryJson
impl Debug for TreeEntryJson
Source§impl Default for TreeEntryJson
impl Default for TreeEntryJson
Source§fn default() -> TreeEntryJson
fn default() -> TreeEntryJson
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for TreeEntryJson
impl<'de> Deserialize<'de> for TreeEntryJson
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 TreeEntryJson
impl PartialEq for TreeEntryJson
Source§impl Serialize for TreeEntryJson
impl Serialize for TreeEntryJson
impl StructuralPartialEq for TreeEntryJson
Auto Trait Implementations§
impl Freeze for TreeEntryJson
impl RefUnwindSafe for TreeEntryJson
impl Send for TreeEntryJson
impl Sync for TreeEntryJson
impl Unpin for TreeEntryJson
impl UnsafeUnpin for TreeEntryJson
impl UnwindSafe for TreeEntryJson
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