#[non_exhaustive]pub struct SquashPaths {
pub from: String,
pub into: String,
pub filesets: Vec<JjFileset>,
pub use_destination_message: bool,
}Expand description
Options for JjApi::squash_paths (jj squash --from <from> --into <into> [--use-destination-message] <filesets>).
#[non_exhaustive], so build it through SquashPaths::new and the chained
setters rather than a struct literal.
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.from: StringSource revision the filesets are squashed out of (--from).
into: StringDestination revision the filesets are squashed into (--into).
filesets: Vec<JjFileset>The exact filesets to move; empty squashes the whole from change.
use_destination_message: boolKeep the destination’s description rather than combining the two
(--use-destination-message).
Implementations§
Source§impl SquashPaths
impl SquashPaths
Sourcepub fn new(from: impl Into<String>, into: impl Into<String>) -> Self
pub fn new(from: impl Into<String>, into: impl Into<String>) -> Self
Squash from from into into, with no filesets selected yet.
Sourcepub fn filesets(self, filesets: impl IntoIterator<Item = JjFileset>) -> Self
pub fn filesets(self, filesets: impl IntoIterator<Item = JjFileset>) -> Self
Set the filesets to move (replacing any already added).
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 SquashPaths
impl Clone for SquashPaths
Source§fn clone(&self) -> SquashPaths
fn clone(&self) -> SquashPaths
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 SquashPaths
impl RefUnwindSafe for SquashPaths
impl Send for SquashPaths
impl Sync for SquashPaths
impl Unpin for SquashPaths
impl UnsafeUnpin for SquashPaths
impl UnwindSafe for SquashPaths
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