Struct roctogen::models::PostGitCreateTree [−][src]
pub struct PostGitCreateTree {
pub tree: Option<Vec<ReposownerrepogittreesTree>>,
pub base_tree: Option<String>,
}
Fields
tree: Option<Vec<ReposownerrepogittreesTree>>
Objects (of path
, mode
, type
, and sha
) specifying a tree structure.
base_tree: Option<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.
Trait Implementations
Returns the “default value” for a type. Read more
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
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for PostGitCreateTree
impl Send for PostGitCreateTree
impl Sync for PostGitCreateTree
impl Unpin for PostGitCreateTree
impl UnwindSafe for PostGitCreateTree
Blanket Implementations
Mutably borrows from an owned value. Read more