pub struct PutReposCreateOrUpdateFileContents {
pub message: Option<String>,
pub content: Option<String>,
pub sha: Option<String>,
pub branch: Option<String>,
pub committer: Option<ReposownerrepocontentspathCommitter>,
pub author: Option<ReposownerrepocontentspathAuthor>,
}Fields§
§message: Option<String>The commit message.
content: Option<String>The new file content, using Base64 encoding.
sha: Option<String>Required if you are updating a file. The blob SHA of the file being replaced.
branch: Option<String>The branch name. Default: the repository’s default branch.
committer: Option<ReposownerrepocontentspathCommitter>Trait Implementations§
Source§impl Clone for PutReposCreateOrUpdateFileContents
impl Clone for PutReposCreateOrUpdateFileContents
Source§fn clone(&self) -> PutReposCreateOrUpdateFileContents
fn clone(&self) -> PutReposCreateOrUpdateFileContents
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Default for PutReposCreateOrUpdateFileContents
impl Default for PutReposCreateOrUpdateFileContents
Source§fn default() -> PutReposCreateOrUpdateFileContents
fn default() -> PutReposCreateOrUpdateFileContents
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for PutReposCreateOrUpdateFileContents
impl<'de> Deserialize<'de> for PutReposCreateOrUpdateFileContents
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>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for PutReposCreateOrUpdateFileContents
impl PartialEq for PutReposCreateOrUpdateFileContents
Source§fn eq(&self, other: &PutReposCreateOrUpdateFileContents) -> bool
fn eq(&self, other: &PutReposCreateOrUpdateFileContents) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for PutReposCreateOrUpdateFileContents
Auto Trait Implementations§
impl Freeze for PutReposCreateOrUpdateFileContents
impl RefUnwindSafe for PutReposCreateOrUpdateFileContents
impl Send for PutReposCreateOrUpdateFileContents
impl Sync for PutReposCreateOrUpdateFileContents
impl Unpin for PutReposCreateOrUpdateFileContents
impl UnwindSafe for PutReposCreateOrUpdateFileContents
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more