Enum xvc_pipeline::XvcDependency
source · 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),
}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)
Generic(GenericDep)
File(FileDep)
Invalidates when the file content changes.
GlobItems(GlobItemsDep)
Invalidates when contents in any of the files this glob describes
Glob(GlobDep)
RegexItems(RegexItemsDep)
Regex(RegexDep)
Param(ParamDep)
LineItems(LineItemsDep)
When a step depends to a set of lines in a text file
Lines(LinesDep)
UrlDigest(UrlDigestDep)
Implementations§
Trait Implementations§
source§impl Clone for XvcDependency
impl Clone for XvcDependency
source§fn clone(&self) -> XvcDependency
fn clone(&self) -> XvcDependency
Returns a copy 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 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>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Diffable for XvcDependency
impl Diffable for XvcDependency
§type Item = XvcDependency
type Item = XvcDependency
The type of the entity to compare.
source§fn diff(
record: Option<&XvcDependency>,
actual: Option<&XvcDependency>
) -> Diff<XvcDependency>
fn diff( record: Option<&XvcDependency>, actual: Option<&XvcDependency> ) -> Diff<XvcDependency>
⚠️ Usually you must update actual’s metadata and timestamp before calling this.
Use diff_superficial and diff_thorough for shortcut comparisons. (e.g. when metadata is not changed, no need to
compare the content. ) Read more
source§impl Display for XvcDependency
impl Display for XvcDependency
source§impl Into<XvcDependency> for FileDep
impl Into<XvcDependency> for FileDep
source§fn into(self) -> XvcDependency
fn into(self) -> XvcDependency
Converts this type into the (usually inferred) input type.
source§impl Into<XvcDependency> for GenericDep
impl Into<XvcDependency> for GenericDep
source§fn into(self) -> XvcDependency
fn into(self) -> XvcDependency
Converts this type into the (usually inferred) input type.
source§impl Into<XvcDependency> for GlobDep
impl Into<XvcDependency> for GlobDep
source§fn into(self) -> XvcDependency
fn into(self) -> XvcDependency
Converts this type into the (usually inferred) input type.
source§impl Into<XvcDependency> for GlobItemsDep
impl Into<XvcDependency> for GlobItemsDep
source§fn into(self) -> XvcDependency
fn into(self) -> XvcDependency
Converts this type into the (usually inferred) input type.
source§impl Into<XvcDependency> for LineItemsDep
impl Into<XvcDependency> for LineItemsDep
source§fn into(self) -> XvcDependency
fn into(self) -> XvcDependency
Converts this type into the (usually inferred) input type.
source§impl Into<XvcDependency> for LinesDep
impl Into<XvcDependency> for LinesDep
source§fn into(self) -> XvcDependency
fn into(self) -> XvcDependency
Converts this type into the (usually inferred) input type.
source§impl Into<XvcDependency> for ParamDep
impl Into<XvcDependency> for ParamDep
source§fn into(self) -> XvcDependency
fn into(self) -> XvcDependency
Converts this type into the (usually inferred) input type.
source§impl Into<XvcDependency> for RegexDep
impl Into<XvcDependency> for RegexDep
source§fn into(self) -> XvcDependency
fn into(self) -> XvcDependency
Converts this type into the (usually inferred) input type.
source§impl Into<XvcDependency> for RegexItemsDep
impl Into<XvcDependency> for RegexItemsDep
source§fn into(self) -> XvcDependency
fn into(self) -> XvcDependency
Converts this type into the (usually inferred) input type.
source§impl Into<XvcDependency> for StepDep
impl Into<XvcDependency> for StepDep
source§fn into(self) -> XvcDependency
fn into(self) -> XvcDependency
Converts this type into the (usually inferred) input type.
source§impl Into<XvcDependency> for UrlDigestDep
impl Into<XvcDependency> for UrlDigestDep
source§fn into(self) -> XvcDependency
fn into(self) -> XvcDependency
Converts this type into the (usually inferred) input type.
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,
Compares and returns the maximum of two values. Read more
source§impl PartialEq<XvcDependency> for XvcDependency
impl PartialEq<XvcDependency> for XvcDependency
source§fn eq(&self, other: &XvcDependency) -> bool
fn eq(&self, other: &XvcDependency) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl PartialOrd<XvcDependency> for XvcDependency
impl PartialOrd<XvcDependency> for XvcDependency
source§fn partial_cmp(&self, other: &XvcDependency) -> Option<Ordering>
fn partial_cmp(&self, other: &XvcDependency) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self and other) and is used by the <=
operator. Read moresource§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
A string representation for the type. Read more
impl Eq for XvcDependency
impl StructuralEq for XvcDependency
impl StructuralPartialEq for XvcDependency
Auto Trait Implementations§
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
Mutably borrows from an owned value. Read more
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.