Struct xvc_pipeline::deps::url::UrlDigestDep
source · pub struct UrlDigestDep {
pub url: Url,
pub etag: Option<String>,
pub last_modified: Option<String>,
pub url_content_digest: Option<UrlContentDigest>,
}Expand description
Invalidates when header of the URL get request changes.
Fields§
§url: UrlURL like https://example.com/my-file.html
etag: Option<String>§last_modified: Option<String>§url_content_digest: Option<UrlContentDigest>Implementations§
source§impl UrlDigestDep
impl UrlDigestDep
pub fn new(url: Url) -> Self
pub fn update_headers(self) -> Result<Self>
pub fn update_content_digest(self) -> Result<Self>
Trait Implementations§
source§impl Clone for UrlDigestDep
impl Clone for UrlDigestDep
source§fn clone(&self) -> UrlDigestDep
fn clone(&self) -> UrlDigestDep
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 UrlDigestDep
impl Debug for UrlDigestDep
source§impl<'de> Deserialize<'de> for UrlDigestDep
impl<'de> Deserialize<'de> for UrlDigestDep
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 UrlDigestDep
impl Diffable for UrlDigestDep
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>
⚠️ Call actual.update_headers 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>
⚠️ Call actual.update_content_digest 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>
⚠️ Call actual.update_content_digest before calling this. ⚠️
§type Item = UrlDigestDep
type Item = UrlDigestDep
The type of the entity to compare.
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 UrlDigestDep
impl Ord for UrlDigestDep
source§fn cmp(&self, other: &UrlDigestDep) -> Ordering
fn cmp(&self, other: &UrlDigestDep) -> 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<UrlDigestDep> for UrlDigestDep
impl PartialEq<UrlDigestDep> for UrlDigestDep
source§fn eq(&self, other: &UrlDigestDep) -> bool
fn eq(&self, other: &UrlDigestDep) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl PartialOrd<UrlDigestDep> for UrlDigestDep
impl PartialOrd<UrlDigestDep> for UrlDigestDep
source§fn partial_cmp(&self, other: &UrlDigestDep) -> Option<Ordering>
fn partial_cmp(&self, other: &UrlDigestDep) -> 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 UrlDigestDep
impl Serialize for UrlDigestDep
source§impl Storable for UrlDigestDep
impl Storable for UrlDigestDep
source§fn type_description() -> String
fn type_description() -> String
A string representation for the type. Read more
impl Eq for UrlDigestDep
impl StructuralEq for UrlDigestDep
impl StructuralPartialEq for UrlDigestDep
Auto Trait Implementations§
impl RefUnwindSafe for UrlDigestDep
impl Send for UrlDigestDep
impl Sync for UrlDigestDep
impl Unpin for UrlDigestDep
impl UnwindSafe for UrlDigestDep
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.