pub struct ChangeFilesOptions {
pub author: Option<Box<Identity>>,
pub branch: Option<String>,
pub committer: Option<Box<Identity>>,
pub dates: Option<Box<CommitDateOptions>>,
pub files: Vec<ChangeFileOperation>,
pub message: Option<String>,
pub new_branch: Option<String>,
pub signoff: Option<bool>,
}Expand description
ChangeFilesOptions : ChangeFilesOptions options for creating, updating or deleting multiple files 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>>§dates: Option<Box<CommitDateOptions>>§files: Vec<ChangeFileOperation>list of file operations
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 ChangeFilesOptions
impl ChangeFilesOptions
Sourcepub fn new(files: Vec<ChangeFileOperation>) -> ChangeFilesOptions
pub fn new(files: Vec<ChangeFileOperation>) -> ChangeFilesOptions
ChangeFilesOptions options for creating, updating or deleting multiple files 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 ChangeFilesOptions
impl Clone for ChangeFilesOptions
Source§fn clone(&self) -> ChangeFilesOptions
fn clone(&self) -> ChangeFilesOptions
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ChangeFilesOptions
impl Debug for ChangeFilesOptions
Source§impl Default for ChangeFilesOptions
impl Default for ChangeFilesOptions
Source§fn default() -> ChangeFilesOptions
fn default() -> ChangeFilesOptions
Source§impl<'de> Deserialize<'de> for ChangeFilesOptions
impl<'de> Deserialize<'de> for ChangeFilesOptions
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 ChangeFilesOptions
impl PartialEq for ChangeFilesOptions
Source§impl Serialize for ChangeFilesOptions
impl Serialize for ChangeFilesOptions
impl StructuralPartialEq for ChangeFilesOptions
Auto Trait Implementations§
impl Freeze for ChangeFilesOptions
impl RefUnwindSafe for ChangeFilesOptions
impl Send for ChangeFilesOptions
impl Sync for ChangeFilesOptions
impl Unpin for ChangeFilesOptions
impl UnwindSafe for ChangeFilesOptions
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
clone_to_uninit)