pub enum GitCommand {
Repository {
action: RepositoryAction,
},
Stage {
paths: Vec<String>,
},
Unstage {
paths: Vec<String>,
},
Commit {
message: String,
},
Checkout {
reference: String,
},
Fetch {
remote: String,
},
Push {
remote: String,
reference: String,
},
PullFastForward {
remote: String,
reference: String,
},
}Variants§
Implementations§
Source§impl GitCommand
impl GitCommand
pub fn from_core(c: &GitMutation) -> Result<Self, CoreError>
pub fn core(&self) -> Result<GitMutation, CoreError>
Trait Implementations§
Source§impl Clone for GitCommand
impl Clone for GitCommand
Source§impl Debug for GitCommand
impl Debug for GitCommand
Source§impl<'de> Deserialize<'de> for GitCommand
impl<'de> Deserialize<'de> for GitCommand
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
impl Eq for GitCommand
Source§impl PartialEq for GitCommand
impl PartialEq for GitCommand
Source§impl Serialize for GitCommand
impl Serialize for GitCommand
impl StructuralPartialEq for GitCommand
Auto Trait Implementations§
impl Forget for GitCommand
impl Freeze for GitCommand
impl RefUnwindSafe for GitCommand
impl Send for GitCommand
impl Sync for GitCommand
impl Unpin for GitCommand
impl UnsafeUnpin for GitCommand
impl UnwindSafe for GitCommand
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