pub struct InfoOptions {
pub peg_revision: Revision,
pub revision: Revision,
pub depth: Depth,
pub fetch_excluded: bool,
pub fetch_actual_only: bool,
pub include_externals: bool,
pub changelists: Option<Vec<String>>,
}Expand description
Options for info operations
Fields§
§peg_revision: RevisionPeg revision for the target.
revision: RevisionOperative revision.
depth: DepthRecursion depth.
fetch_excluded: boolWhether to fetch excluded items.
fetch_actual_only: boolWhether to fetch actual-only items.
include_externals: boolWhether to include externals.
changelists: Option<Vec<String>>Changelists to limit operation to (None = all).
Implementations§
Source§impl InfoOptions
impl InfoOptions
Sourcepub fn with_peg_revision(self, peg_revision: Revision) -> Self
pub fn with_peg_revision(self, peg_revision: Revision) -> Self
Sets the peg revision.
Sourcepub fn with_revision(self, revision: Revision) -> Self
pub fn with_revision(self, revision: Revision) -> Self
Sets the operative revision.
Sourcepub fn with_depth(self, depth: Depth) -> Self
pub fn with_depth(self, depth: Depth) -> Self
Sets the depth.
Sourcepub fn with_fetch_excluded(self, fetch_excluded: bool) -> Self
pub fn with_fetch_excluded(self, fetch_excluded: bool) -> Self
Sets whether to fetch excluded items.
Sourcepub fn with_fetch_actual_only(self, fetch_actual_only: bool) -> Self
pub fn with_fetch_actual_only(self, fetch_actual_only: bool) -> Self
Sets whether to fetch actual-only items.
Sourcepub fn with_include_externals(self, include_externals: bool) -> Self
pub fn with_include_externals(self, include_externals: bool) -> Self
Sets whether to include externals.
Sourcepub fn with_changelists(self, changelists: Vec<String>) -> Self
pub fn with_changelists(self, changelists: Vec<String>) -> Self
Sets the changelists.
Trait Implementations§
Source§impl Clone for InfoOptions
impl Clone for InfoOptions
Source§fn clone(&self) -> InfoOptions
fn clone(&self) -> InfoOptions
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 moreSource§impl Debug for InfoOptions
impl Debug for InfoOptions
Auto Trait Implementations§
impl Freeze for InfoOptions
impl RefUnwindSafe for InfoOptions
impl Send for InfoOptions
impl Sync for InfoOptions
impl Unpin for InfoOptions
impl UnsafeUnpin for InfoOptions
impl UnwindSafe for InfoOptions
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