pub struct ReposCreateOrUpdateFileContentsRequest {
pub message: String,
pub content: String,
pub sha: Option<String>,
pub branch: Option<String>,
pub committer: Option<Box<ReposCreateOrUpdateFileContentsRequestCommitter>>,
pub author: Option<Box<ReposCreateOrUpdateFileContentsRequestAuthor>>,
}
Fields§
§message: String
The commit message.
content: 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<Box<ReposCreateOrUpdateFileContentsRequestCommitter>>
Implementations§
Source§impl ReposCreateOrUpdateFileContentsRequest
impl ReposCreateOrUpdateFileContentsRequest
pub fn new( message: String, content: String, ) -> ReposCreateOrUpdateFileContentsRequest
Trait Implementations§
Source§impl Clone for ReposCreateOrUpdateFileContentsRequest
impl Clone for ReposCreateOrUpdateFileContentsRequest
Source§fn clone(&self) -> ReposCreateOrUpdateFileContentsRequest
fn clone(&self) -> ReposCreateOrUpdateFileContentsRequest
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 ReposCreateOrUpdateFileContentsRequest
impl Default for ReposCreateOrUpdateFileContentsRequest
Source§fn default() -> ReposCreateOrUpdateFileContentsRequest
fn default() -> ReposCreateOrUpdateFileContentsRequest
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ReposCreateOrUpdateFileContentsRequest
impl<'de> Deserialize<'de> for ReposCreateOrUpdateFileContentsRequest
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 ReposCreateOrUpdateFileContentsRequest
impl PartialEq for ReposCreateOrUpdateFileContentsRequest
Source§fn eq(&self, other: &ReposCreateOrUpdateFileContentsRequest) -> bool
fn eq(&self, other: &ReposCreateOrUpdateFileContentsRequest) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.impl StructuralPartialEq for ReposCreateOrUpdateFileContentsRequest
Auto Trait Implementations§
impl Freeze for ReposCreateOrUpdateFileContentsRequest
impl RefUnwindSafe for ReposCreateOrUpdateFileContentsRequest
impl Send for ReposCreateOrUpdateFileContentsRequest
impl Sync for ReposCreateOrUpdateFileContentsRequest
impl Unpin for ReposCreateOrUpdateFileContentsRequest
impl UnwindSafe for ReposCreateOrUpdateFileContentsRequest
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