pub struct CheckoutOptions {
pub force: bool,
pub create_branch: Option<String>,
pub detach: bool,
pub extra_args: ExtraArgs,
}Expand description
Controls checkout behavior.
Fields§
§force: boolForce checkout when local changes are present.
create_branch: Option<String>Create a new branch while checking out.
detach: boolDetach HEAD at the target ref.
extra_args: ExtraArgsImplementation-specific passthrough arguments.
Trait Implementations§
Source§impl Clone for CheckoutOptions
impl Clone for CheckoutOptions
Source§fn clone(&self) -> CheckoutOptions
fn clone(&self) -> CheckoutOptions
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 CheckoutOptions
impl Debug for CheckoutOptions
Source§impl Default for CheckoutOptions
impl Default for CheckoutOptions
Source§fn default() -> CheckoutOptions
fn default() -> CheckoutOptions
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for CheckoutOptions
impl RefUnwindSafe for CheckoutOptions
impl Send for CheckoutOptions
impl Sync for CheckoutOptions
impl Unpin for CheckoutOptions
impl UnsafeUnpin for CheckoutOptions
impl UnwindSafe for CheckoutOptions
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