pub struct ApplyDiffPatchFileOptions {
pub author: Option<Box<Identity>>,
pub branch: Option<String>,
pub committer: Option<Box<Identity>>,
pub content: String,
pub dates: Option<Box<CommitDateOptions>>,
pub message: Option<String>,
pub new_branch: Option<String>,
pub signoff: Option<bool>,
}Expand description
ApplyDiffPatchFileOptions : ApplyDiffPatchFileOptions options for applying a diff patch Note: author and committer are optional (if only one is given, it will be used for the other, otherwise the authenticated user will be used)
Fields§
§branch: Option<String>branch (optional) to base this file from. if not given, the default branch is used
committer: Option<Box<Identity>>§content: String§dates: Option<Box<CommitDateOptions>>§message: Option<String>message (optional) for the commit of this file. if not supplied, a default message will be used
new_branch: Option<String>new_branch (optional) will make a new branch from branch before creating the file
signoff: Option<bool>Add a Signed-off-by trailer by the committer at the end of the commit log message.
Implementations§
Source§impl ApplyDiffPatchFileOptions
impl ApplyDiffPatchFileOptions
Sourcepub fn new(content: String) -> ApplyDiffPatchFileOptions
pub fn new(content: String) -> ApplyDiffPatchFileOptions
ApplyDiffPatchFileOptions options for applying a diff patch Note: author and committer are optional (if only one is given, it will be used for the other, otherwise the authenticated user will be used)
Trait Implementations§
Source§impl Clone for ApplyDiffPatchFileOptions
impl Clone for ApplyDiffPatchFileOptions
Source§fn clone(&self) -> ApplyDiffPatchFileOptions
fn clone(&self) -> ApplyDiffPatchFileOptions
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ApplyDiffPatchFileOptions
impl Debug for ApplyDiffPatchFileOptions
Source§impl Default for ApplyDiffPatchFileOptions
impl Default for ApplyDiffPatchFileOptions
Source§fn default() -> ApplyDiffPatchFileOptions
fn default() -> ApplyDiffPatchFileOptions
Source§impl<'de> Deserialize<'de> for ApplyDiffPatchFileOptions
impl<'de> Deserialize<'de> for ApplyDiffPatchFileOptions
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 ApplyDiffPatchFileOptions
impl PartialEq for ApplyDiffPatchFileOptions
Source§fn eq(&self, other: &ApplyDiffPatchFileOptions) -> bool
fn eq(&self, other: &ApplyDiffPatchFileOptions) -> bool
self and other values to be equal, and is used by ==.