pub struct DeleteFileOptions {
pub author: Option<Identity>,
pub branch: Option<String>,
pub committer: Option<Identity>,
pub dates: Option<CommitDateOptions>,
pub message: Option<String>,
pub new_branch: Option<String>,
pub sha: String,
pub signoff: Option<bool>,
}Expand description
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<Identity>§dates: Option<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: Stringsha 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.
Trait Implementations§
Source§impl Clone for DeleteFileOptions
impl Clone for DeleteFileOptions
Source§fn clone(&self) -> DeleteFileOptions
fn clone(&self) -> DeleteFileOptions
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 Debug for DeleteFileOptions
impl Debug for DeleteFileOptions
Source§impl<'de> Deserialize<'de> for DeleteFileOptions
impl<'de> Deserialize<'de> for DeleteFileOptions
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 DeleteFileOptions
impl PartialEq for DeleteFileOptions
Source§impl Serialize for DeleteFileOptions
impl Serialize for DeleteFileOptions
impl StructuralPartialEq for DeleteFileOptions
Auto Trait Implementations§
impl Freeze for DeleteFileOptions
impl RefUnwindSafe for DeleteFileOptions
impl Send for DeleteFileOptions
impl Sync for DeleteFileOptions
impl Unpin for DeleteFileOptions
impl UnwindSafe for DeleteFileOptions
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