Struct xvc_pipeline::deps::glob::GlobDep
source · pub struct GlobDep {
pub glob: String,
pub xvc_paths_digest: Option<PathCollectionDigest>,
pub xvc_metadata_digest: Option<PathCollectionMetadataDigest>,
pub content_digest: Option<PathCollectionContentDigest>,
}Expand description
Invalidates when contents of any of the files in the directory changes.
Fields§
§glob: StringThe path in the workspace
xvc_paths_digest: Option<PathCollectionDigest>§xvc_metadata_digest: Option<PathCollectionMetadataDigest>§content_digest: Option<PathCollectionContentDigest>Implementations§
source§impl GlobDep
impl GlobDep
pub fn new(glob: String) -> Self
pub fn update_collection_digests(self, pmm: &XvcPathMetadataMap) -> Result<Self>
pub fn update_content_digest( self, xvc_root: &XvcRoot, pmm: &XvcPathMetadataMap ) -> Result<Self>
Trait Implementations§
source§impl<'de> Deserialize<'de> for GlobDep
impl<'de> Deserialize<'de> for GlobDep
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 GlobDep
impl Diffable for GlobDep
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>
This is to compare two entities with a quick comparison.
e.g. metadata of a file, timestamp of a URL etc.
You may need to update actual’s metadata or timestamp before calling this.
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>
This is to calculate two entities with a thorough comparison.
e.g. content of a file, content of a URL etc.
You may need to update actual’s content before calling this.
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 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 Ord for GlobDep
impl Ord for GlobDep
source§impl PartialEq<GlobDep> for GlobDep
impl PartialEq<GlobDep> for GlobDep
source§impl PartialOrd<GlobDep> for GlobDep
impl PartialOrd<GlobDep> for GlobDep
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 Storable for GlobDep
impl Storable for GlobDep
source§fn type_description() -> String
fn type_description() -> String
A string representation for the type. Read more
impl Eq for GlobDep
impl StructuralEq for GlobDep
impl StructuralPartialEq for GlobDep
Auto Trait Implementations§
impl RefUnwindSafe for GlobDep
impl Send for GlobDep
impl Sync for GlobDep
impl Unpin for GlobDep
impl UnwindSafe for GlobDep
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.