pub struct TrackerDefinition {
pub name: String,
pub audience: String,
pub storage: Storage,
pub merge_with_source: bool,
pub paths: Vec<Utf8PathBuf>,
pub definition_rev: String,
}Expand description
A named, versioned lane of file content. Parsed from
.newgit/trackers/<name>.toml; the name comes from the filename.
Fields§
§name: String§audience: String§storage: Storage§merge_with_source: boolWhether a source merge should carry this tracker binding with it.
paths: Vec<Utf8PathBuf>Workspace-relative paths this tracker owns. May be empty for lanes
that only receive deposits (e.g. db-snapshots).
definition_rev: Stringsha256:<hex12> of the definition file contents.
Implementations§
Source§impl TrackerDefinition
impl TrackerDefinition
pub fn new( name: &str, audience: String, storage: Storage, merge_with_source: bool, paths: Vec<Utf8PathBuf>, ) -> Result<Self>
pub fn from_file(name: &str, path: &Utf8Path) -> Result<Self>
pub fn with_added_paths(&self, paths: &[Utf8PathBuf]) -> Result<Self>
pub fn to_file(&self) -> TrackerDefinitionFile
Trait Implementations§
Source§impl Clone for TrackerDefinition
impl Clone for TrackerDefinition
Source§fn clone(&self) -> TrackerDefinition
fn clone(&self) -> TrackerDefinition
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 TrackerDefinition
impl Debug for TrackerDefinition
impl Eq for TrackerDefinition
Source§impl PartialEq for TrackerDefinition
impl PartialEq for TrackerDefinition
impl StructuralPartialEq for TrackerDefinition
Auto Trait Implementations§
impl Freeze for TrackerDefinition
impl RefUnwindSafe for TrackerDefinition
impl Send for TrackerDefinition
impl Sync for TrackerDefinition
impl Unpin for TrackerDefinition
impl UnsafeUnpin for TrackerDefinition
impl UnwindSafe for TrackerDefinition
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