Struct octorust::types::ReposCreateUpdateFileContentsRequest [−][src]
pub struct ReposCreateUpdateFileContentsRequest { pub author: Option<ReposCreateUpdateFileContentsRequestAuthor>, pub branch: String, pub committer: Option<ReposCreateUpdateFileContentsRequestCommitter>, pub content: String, pub message: String, pub sha: String, }
Fields
The author of the file. Default: The committer
or the authenticated user if you omit committer
.
branch: String
The branch name. Default: the repository’s default branch (usually master
)
committer: Option<ReposCreateUpdateFileContentsRequestCommitter>
The person that committed the file. Default: the authenticated user.
content: String
The new file content, using Base64 encoding.
message: String
The commit message.
sha: String
**Required if you are updating a file**. The blob SHA of the file being replaced.
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 Send for ReposCreateUpdateFileContentsRequest
impl Sync for ReposCreateUpdateFileContentsRequest
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more