pub enum SymbolicRefAction {
Read {
name: String,
short: bool,
},
Set {
name: String,
target: String,
reason: Option<String>,
},
Delete {
name: String,
quiet: bool,
},
}Expand description
Actions supported by git symbolic-ref.
Variants§
Read
Read the target of ref (e.g. HEAD -> refs/heads/main).
Set
Set name to point at target.
Fields
Delete
Delete the symbolic ref.
Trait Implementations§
Source§impl Clone for SymbolicRefAction
impl Clone for SymbolicRefAction
Source§fn clone(&self) -> SymbolicRefAction
fn clone(&self) -> SymbolicRefAction
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 moreAuto Trait Implementations§
impl Freeze for SymbolicRefAction
impl RefUnwindSafe for SymbolicRefAction
impl Send for SymbolicRefAction
impl Sync for SymbolicRefAction
impl Unpin for SymbolicRefAction
impl UnsafeUnpin for SymbolicRefAction
impl UnwindSafe for SymbolicRefAction
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