#[non_exhaustive]pub struct SquashInto {
pub into: RevsetExpr,
pub use_destination_message: bool,
}Expand description
Options for JjApi::squash_into (jj squash --into <rev>).
#[non_exhaustive], so build it through SquashInto::new and the chained
use_destination_message setter rather
than a bare bool.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.into: RevsetExprThe destination revision the working copy is squashed into (--into).
use_destination_message: boolKeep the destination’s description rather than combining the two
(--use-destination-message).
Implementations§
Source§impl SquashInto
impl SquashInto
Sourcepub fn new(into: RevsetExpr) -> Self
pub fn new(into: RevsetExpr) -> Self
Squash the working copy into into, combining the two descriptions.
Sourcepub fn use_destination_message(self) -> Self
pub fn use_destination_message(self) -> Self
Keep the destination’s description (--use-destination-message) instead
of combining the two.
Trait Implementations§
Source§impl Clone for SquashInto
impl Clone for SquashInto
Source§fn clone(&self) -> SquashInto
fn clone(&self) -> SquashInto
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 SquashInto
impl Debug for SquashInto
impl Eq for SquashInto
Source§impl PartialEq for SquashInto
impl PartialEq for SquashInto
impl StructuralPartialEq for SquashInto
Auto Trait Implementations§
impl Freeze for SquashInto
impl RefUnwindSafe for SquashInto
impl Send for SquashInto
impl Sync for SquashInto
impl Unpin for SquashInto
impl UnsafeUnpin for SquashInto
impl UnwindSafe for SquashInto
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