pub struct Json<'a> {
pub tree: Cow<'a, [Tree<'a>]>,
pub base_tree: Option<Cow<'a, str>>,
pub additionalProperties: HashMap<Cow<'a, str>, Value>,
}
Fields§
§tree: Cow<'a, [Tree<'a>]>
Objects (of path
, mode
, type
, and sha
) specifying a tree structure.
base_tree: Option<Cow<'a, str>>
The SHA1 of an existing Git tree object which will be used as the base for the new tree. If provided, a new Git tree object will be created from entries in the Git tree object pointed to by base_tree
and entries defined in the tree
parameter. Entries defined in the tree
parameter will overwrite items from base_tree
with the same path
. If you’re creating new changes on a branch, then normally you’d set base_tree
to the SHA1 of the Git tree object of the current latest commit on the branch you’re working on.
If not provided, GitHub will create a new Git tree object from only the entries defined in the tree
parameter. If you create a new commit pointing to such a tree, then all files which were a part of the parent commit’s tree and were not defined in the tree
parameter will be listed as deleted by the new commit.
additionalProperties: HashMap<Cow<'a, str>, Value>
Trait Implementations§
Source§impl<'de, 'a> Deserialize<'de> for Json<'a>
impl<'de, 'a> Deserialize<'de> for Json<'a>
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>,
impl<'a> Eq for Json<'a>
impl<'a> StructuralPartialEq for Json<'a>
Auto Trait Implementations§
impl<'a> Freeze for Json<'a>
impl<'a> RefUnwindSafe for Json<'a>
impl<'a> Send for Json<'a>
impl<'a> Sync for Json<'a>
impl<'a> Unpin for Json<'a>
impl<'a> UnwindSafe for Json<'a>
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.