pub struct GitCreateTreeRequestTreeInner {
pub path: Option<String>,
pub mode: Option<Mode>,
pub type: Option<Type>,
pub sha: Option<Option<String>>,
pub content: Option<String>,
}Fields§
§path: Option<String>The file referenced in the tree.
mode: Option<Mode>The file mode; one of 100644 for file (blob), 100755 for executable (blob), 040000 for subdirectory (tree), 160000 for submodule (commit), or 120000 for a blob that specifies the path of a symlink.
type: Option<Type>Either blob, tree, or commit.
sha: Option<Option<String>>The SHA1 checksum ID of the object in the tree. Also called tree.sha. If the value is null then the file will be deleted. Note: Use either tree.sha or content to specify the contents of the entry. Using both tree.sha and content will return an error.
content: Option<String>The content you want this file to have. GitHub will write this blob out and use that SHA for this entry. Use either this, or tree.sha. Note: Use either tree.sha or content to specify the contents of the entry. Using both tree.sha and content will return an error.
Implementations§
Trait Implementations§
Source§impl Clone for GitCreateTreeRequestTreeInner
impl Clone for GitCreateTreeRequestTreeInner
Source§fn clone(&self) -> GitCreateTreeRequestTreeInner
fn clone(&self) -> GitCreateTreeRequestTreeInner
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Default for GitCreateTreeRequestTreeInner
impl Default for GitCreateTreeRequestTreeInner
Source§fn default() -> GitCreateTreeRequestTreeInner
fn default() -> GitCreateTreeRequestTreeInner
Source§impl<'de> Deserialize<'de> for GitCreateTreeRequestTreeInner
impl<'de> Deserialize<'de> for GitCreateTreeRequestTreeInner
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>,
Source§impl PartialEq for GitCreateTreeRequestTreeInner
impl PartialEq for GitCreateTreeRequestTreeInner
Source§fn eq(&self, other: &GitCreateTreeRequestTreeInner) -> bool
fn eq(&self, other: &GitCreateTreeRequestTreeInner) -> bool
self and other values to be equal, and is used by ==.