pub enum RemoteAction {
List {
verbose: bool,
},
Add {
name: String,
url: String,
},
Remove(String),
Rename {
from: String,
to: String,
},
SetUrl {
name: String,
url: String,
},
Show(String),
Prune(String),
}Expand description
Actions supported by git remote.
Variants§
List
List remotes (git remote or git remote -v).
Add
Add a remote: git remote add <name> <url>.
Remove(String)
Remove a remote: git remote remove <name>.
Rename
Rename a remote: git remote rename <old> <new>.
SetUrl
Set URL: git remote set-url <name> <url>.
Show(String)
Show remote: git remote show <name>.
Prune(String)
Prune stale refs: git remote prune <name>.
Trait Implementations§
Source§impl Clone for RemoteAction
impl Clone for RemoteAction
Source§fn clone(&self) -> RemoteAction
fn clone(&self) -> RemoteAction
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 RemoteAction
impl RefUnwindSafe for RemoteAction
impl Send for RemoteAction
impl Sync for RemoteAction
impl Unpin for RemoteAction
impl UnsafeUnpin for RemoteAction
impl UnwindSafe for RemoteAction
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