Struct xvc_pipeline::deps::generic::GenericDep
source · pub struct GenericDep {
pub generic_command: String,
pub output_digest: Option<StdoutDigest>,
}Expand description
A generic dependency that’s invalidated when the given command’s output has changed.
Fields§
§generic_command: String§output_digest: Option<StdoutDigest>Implementations§
source§impl GenericDep
impl GenericDep
Trait Implementations§
source§impl Clone for GenericDep
impl Clone for GenericDep
source§fn clone(&self) -> GenericDep
fn clone(&self) -> GenericDep
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 GenericDep
impl Debug for GenericDep
source§impl<'de> Deserialize<'de> for GenericDep
impl<'de> Deserialize<'de> for GenericDep
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 GenericDep
impl Diffable for GenericDep
source§fn diff_superficial(
record: &Self::Item,
actual: &Self::Item
) -> Diff<Self::Item>
fn diff_superficial( record: &Self::Item, actual: &Self::Item ) -> Diff<Self::Item>
Always use the command output for the diff.
source§fn diff_thorough(record: &Self::Item, actual: &Self::Item) -> Diff<Self::Item>
fn diff_thorough(record: &Self::Item, actual: &Self::Item) -> Diff<Self::Item>
Compare the command and the output. WARN: Self::update_output_digest() must be called before this method.
§type Item = GenericDep
type Item = GenericDep
The type of the entity to compare.
source§fn diff(
record: Option<&Self::Item>,
actual: Option<&Self::Item>
) -> Diff<Self::Item>
fn diff( record: Option<&Self::Item>, actual: Option<&Self::Item> ) -> Diff<Self::Item>
⚠️ 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 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 Ord for GenericDep
impl Ord for GenericDep
source§fn cmp(&self, other: &GenericDep) -> Ordering
fn cmp(&self, other: &GenericDep) -> 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<GenericDep> for GenericDep
impl PartialEq<GenericDep> for GenericDep
source§fn eq(&self, other: &GenericDep) -> bool
fn eq(&self, other: &GenericDep) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl PartialOrd<GenericDep> for GenericDep
impl PartialOrd<GenericDep> for GenericDep
source§fn partial_cmp(&self, other: &GenericDep) -> Option<Ordering>
fn partial_cmp(&self, other: &GenericDep) -> 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 GenericDep
impl Serialize for GenericDep
source§impl Storable for GenericDep
impl Storable for GenericDep
source§fn type_description() -> String
fn type_description() -> String
A string representation for the type. Read more
impl Eq for GenericDep
impl StructuralEq for GenericDep
impl StructuralPartialEq for GenericDep
Auto Trait Implementations§
impl RefUnwindSafe for GenericDep
impl Send for GenericDep
impl Sync for GenericDep
impl Unpin for GenericDep
impl UnwindSafe for GenericDep
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.