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
impl Clone for PostGitCreateTree
[src]
impl Clone for PostGitCreateTree
[src]fn clone(&self) -> PostGitCreateTree
[src]
fn clone(&self) -> PostGitCreateTree
[src]Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]Performs copy-assignment from source
. Read more
impl Debug for PostGitCreateTree
[src]
impl Debug for PostGitCreateTree
[src]impl Default for PostGitCreateTree
[src]
impl Default for PostGitCreateTree
[src]fn default() -> PostGitCreateTree
[src]
fn default() -> PostGitCreateTree
[src]Returns the “default value” for a type. Read more
impl<'de> Deserialize<'de> for PostGitCreateTree
[src]
impl<'de> Deserialize<'de> for PostGitCreateTree
[src]fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]Deserialize this value from the given Serde deserializer. Read more
impl PartialEq<PostGitCreateTree> for PostGitCreateTree
[src]
impl PartialEq<PostGitCreateTree> for PostGitCreateTree
[src]fn eq(&self, other: &PostGitCreateTree) -> bool
[src]
fn eq(&self, other: &PostGitCreateTree) -> bool
[src]This method tests for self
and other
values to be equal, and is used
by ==
. Read more
fn ne(&self, other: &PostGitCreateTree) -> bool
[src]
fn ne(&self, other: &PostGitCreateTree) -> bool
[src]This method tests for !=
.
impl Serialize for PostGitCreateTree
[src]
impl Serialize for PostGitCreateTree
[src]impl StructuralPartialEq for PostGitCreateTree
[src]
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
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,