pub struct RemoteAddOpts {
pub name: String,
pub url: String,
pub force: bool,
}Expand description
Options for adding a remote
Fields§
§name: StringRemote name (e.g., “origin”, “upstream”)
url: StringRemote URL (https, git, ssh, or file URL)
force: boolForce add (overwrite if exists)
Trait Implementations§
Source§impl Clone for RemoteAddOpts
impl Clone for RemoteAddOpts
Source§fn clone(&self) -> RemoteAddOpts
fn clone(&self) -> RemoteAddOpts
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 moreAuto Trait Implementations§
impl Freeze for RemoteAddOpts
impl RefUnwindSafe for RemoteAddOpts
impl Send for RemoteAddOpts
impl Sync for RemoteAddOpts
impl Unpin for RemoteAddOpts
impl UnwindSafe for RemoteAddOpts
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