pub enum CommitFile {
Upsert {
path: String,
content: String,
encoding: Option<Encoding>,
},
Delete {
path: String,
},
Lfs {
path: String,
oid: String,
size: i64,
},
}Expand description
A file operation within a commit.
Each variant maps to one of the anyOf shapes in the API spec.
Variants§
Trait Implementations§
Source§impl Clone for CommitFile
impl Clone for CommitFile
Source§fn clone(&self) -> CommitFile
fn clone(&self) -> CommitFile
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 CommitFile
impl Debug for CommitFile
Source§impl PartialEq for CommitFile
impl PartialEq for CommitFile
Source§impl Serialize for CommitFile
impl Serialize for CommitFile
impl StructuralPartialEq for CommitFile
Auto Trait Implementations§
impl Freeze for CommitFile
impl RefUnwindSafe for CommitFile
impl Send for CommitFile
impl Sync for CommitFile
impl Unpin for CommitFile
impl UnsafeUnpin for CommitFile
impl UnwindSafe for CommitFile
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