pub struct DeleteFileOptions {
pub author: Option<Box<Identity>>,
pub branch: Option<String>,
pub committer: Option<Box<Identity>>,
pub dates: Option<Box<CommitDateOptions>>,
pub message: Option<String>,
pub new_branch: Option<String>,
pub sha: String,
pub signoff: Option<bool>,
}
Expand description
DeleteFileOptions : DeleteFileOptions options for deleting files (used for other File structs below) 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>>
§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
sha: String
sha is the SHA for the file that already exists
signoff: Option<bool>
Add a Signed-off-by trailer by the committer at the end of the commit log message.
Implementations§
Source§impl DeleteFileOptions
impl DeleteFileOptions
Sourcepub fn new(sha: String) -> DeleteFileOptions
pub fn new(sha: String) -> DeleteFileOptions
DeleteFileOptions options for deleting files (used for other File structs below) 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 DeleteFileOptions
impl Clone for DeleteFileOptions
Source§fn clone(&self) -> DeleteFileOptions
fn clone(&self) -> DeleteFileOptions
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more