pub enum XvcDependency {
Step(StepDep),
Generic(GenericDep),
File(FileDep),
GlobItems(GlobItemsDep),
Glob(GlobDep),
RegexItems(RegexItemsDep),
Regex(RegexDep),
Param(ParamDep),
LineItems(LineItemsDep),
Lines(LinesDep),
UrlDigest(UrlDigestDep),
SqliteQueryDigest(SqliteQueryDep),
}
Expand description
Represents variety of dependencies Xvc supports. This is to unify all dependencies without dynamic dispatch and having compile time errors when we miss something about dependencies.
Variants§
Step(StepDep)
Explicitly defined step depenedencies
Generic(GenericDep)
Dependencies which checks the change of output of a shell command
File(FileDep)
Invalidates when the file content changes.
GlobItems(GlobItemsDep)
Invalidates when contents in any of the files this glob describes. Keeps track of individual files.
Glob(GlobDep)
Invalidates when contents in any of the files this glob describes. Doesn’t keep track of individual files.
RegexItems(RegexItemsDep)
A dependency to a set of lines defined by a regex. Keeps track of individual lines.
Regex(RegexDep)
A dependency to a set of lines defined by a regex. Doesn’t keep track of individual lines.
Param(ParamDep)
A dependency to a parameter in JSON, YAML or TOML file.
LineItems(LineItemsDep)
A dependenci to a set of lines defined by a range. Keeps track of individual lines.
Lines(LinesDep)
A dependenci to a set of lines defined by a range. Doesn’t keep track of individual lines.
UrlDigest(UrlDigestDep)
A dependency to a URL’s content
SqliteQueryDigest(SqliteQueryDep)
A dependency to an SQLite Query, that invalidates when the query results change
Implementations§
Trait Implementations§
Source§impl Clone for XvcDependency
impl Clone for XvcDependency
Source§fn clone(&self) -> XvcDependency
fn clone(&self) -> XvcDependency
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for XvcDependency
impl Debug for XvcDependency
Source§impl<'de> Deserialize<'de> for XvcDependency
impl<'de> Deserialize<'de> for XvcDependency
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl Diffable for XvcDependency
impl Diffable for XvcDependency
Source§type Item = XvcDependency
type Item = XvcDependency
Source§fn diff(
record: Option<&XvcDependency>,
actual: Option<&XvcDependency>,
) -> Diff<XvcDependency>
fn diff( record: Option<&XvcDependency>, actual: Option<&XvcDependency>, ) -> Diff<XvcDependency>
Source§impl Display for XvcDependency
impl Display for XvcDependency
Source§impl From<FileDep> for XvcDependency
impl From<FileDep> for XvcDependency
Source§impl From<GenericDep> for XvcDependency
impl From<GenericDep> for XvcDependency
Source§fn from(val: GenericDep) -> Self
fn from(val: GenericDep) -> Self
Source§impl From<GlobDep> for XvcDependency
impl From<GlobDep> for XvcDependency
Source§impl From<GlobItemsDep> for XvcDependency
impl From<GlobItemsDep> for XvcDependency
Source§fn from(val: GlobItemsDep) -> Self
fn from(val: GlobItemsDep) -> Self
Source§impl From<LineItemsDep> for XvcDependency
impl From<LineItemsDep> for XvcDependency
Source§fn from(val: LineItemsDep) -> Self
fn from(val: LineItemsDep) -> Self
Source§impl From<LinesDep> for XvcDependency
impl From<LinesDep> for XvcDependency
Source§impl From<ParamDep> for XvcDependency
impl From<ParamDep> for XvcDependency
Source§impl From<RegexDep> for XvcDependency
impl From<RegexDep> for XvcDependency
Source§impl From<RegexItemsDep> for XvcDependency
impl From<RegexItemsDep> for XvcDependency
Source§fn from(val: RegexItemsDep) -> Self
fn from(val: RegexItemsDep) -> Self
Source§impl From<SqliteQueryDep> for XvcDependency
impl From<SqliteQueryDep> for XvcDependency
Source§fn from(val: SqliteQueryDep) -> Self
fn from(val: SqliteQueryDep) -> Self
Source§impl From<StepDep> for XvcDependency
impl From<StepDep> for XvcDependency
Source§impl From<UrlDigestDep> for XvcDependency
impl From<UrlDigestDep> for XvcDependency
Source§fn from(val: UrlDigestDep) -> Self
fn from(val: UrlDigestDep) -> Self
Source§impl Ord for XvcDependency
impl Ord for XvcDependency
Source§fn cmp(&self, other: &XvcDependency) -> Ordering
fn cmp(&self, other: &XvcDependency) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Source§impl PartialEq for XvcDependency
impl PartialEq for XvcDependency
Source§impl PartialOrd for XvcDependency
impl PartialOrd for XvcDependency
Source§impl Serialize for XvcDependency
impl Serialize for XvcDependency
Source§impl Storable for XvcDependency
impl Storable for XvcDependency
Source§fn type_description() -> String
fn type_description() -> String
impl Eq for XvcDependency
impl StructuralPartialEq for XvcDependency
Auto Trait Implementations§
impl Freeze for XvcDependency
impl RefUnwindSafe for XvcDependency
impl Send for XvcDependency
impl Sync for XvcDependency
impl Unpin for XvcDependency
impl UnwindSafe for XvcDependency
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more