Struct octorust::types::GitCreateTreeRequestData [−][src]
pub struct GitCreateTreeRequestData { pub base_tree: String, pub tree: Vec<GitCreateTreeRequest>, }
Fields
base_tree: String
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.
tree: Vec<GitCreateTreeRequest>
Objects (of path
, mode
, type
, and sha
) specifying a tree structure.
Trait Implementations
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 RefUnwindSafe for GitCreateTreeRequestData
impl Send for GitCreateTreeRequestData
impl Sync for GitCreateTreeRequestData
impl Unpin for GitCreateTreeRequestData
impl UnwindSafe for GitCreateTreeRequestData
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more