pub enum CommitFileChange {
Content {
path: String,
content: String,
encoding: Option<String>,
},
Delete {
path: String,
action: String,
},
Lfs {
path: String,
lfs: LfsFileRef,
},
}Expand description
A file change that can be content, delete, or LFS reference.
Use this type for flexibility when you need to mix regular files with LFS files.
Variants§
Content
Create or update with inline content.
Fields
Delete
Delete a file.
Lfs
Reference an LFS object.
Implementations§
Trait Implementations§
Source§impl Clone for CommitFileChange
impl Clone for CommitFileChange
Source§fn clone(&self) -> CommitFileChange
fn clone(&self) -> CommitFileChange
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 CommitFileChange
impl Debug for CommitFileChange
Auto Trait Implementations§
impl Freeze for CommitFileChange
impl RefUnwindSafe for CommitFileChange
impl Send for CommitFileChange
impl Sync for CommitFileChange
impl Unpin for CommitFileChange
impl UnwindSafe for CommitFileChange
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