pub enum RepositoryAction {
StagePaths(Vec<RepoPath>),
UnstagePaths(Vec<RepoPath>),
StageAll,
UnstageAll,
Commit {
message: String,
},
Discard {
path: RepoPath,
status: FileStatus,
},
}Expand description
A repository mutation requested by a diff review UI.
Renderers emit intents but never execute Git themselves. Embedding hosts
execute the action and install a refreshed crate::DiffDocument snapshot.
Variants§
Trait Implementations§
Source§impl Clone for RepositoryAction
impl Clone for RepositoryAction
Source§fn clone(&self) -> RepositoryAction
fn clone(&self) -> RepositoryAction
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 RepositoryAction
impl Debug for RepositoryAction
Source§impl<'de> Deserialize<'de> for RepositoryAction
impl<'de> Deserialize<'de> for RepositoryAction
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 RepositoryAction
Source§impl PartialEq for RepositoryAction
impl PartialEq for RepositoryAction
Source§impl Serialize for RepositoryAction
impl Serialize for RepositoryAction
impl StructuralPartialEq for RepositoryAction
Auto Trait Implementations§
impl Freeze for RepositoryAction
impl RefUnwindSafe for RepositoryAction
impl Send for RepositoryAction
impl Sync for RepositoryAction
impl Unpin for RepositoryAction
impl UnsafeUnpin for RepositoryAction
impl UnwindSafe for RepositoryAction
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