pub enum DownloadCachePolicy {
NoStore,
Private {
max_age_seconds: u32,
immutable: bool,
},
}Variants§
Implementations§
Source§impl DownloadCachePolicy
impl DownloadCachePolicy
pub fn to_header_value(self) -> String
Trait Implementations§
Source§impl Clone for DownloadCachePolicy
impl Clone for DownloadCachePolicy
Source§fn clone(&self) -> DownloadCachePolicy
fn clone(&self) -> DownloadCachePolicy
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for DownloadCachePolicy
Source§impl Debug for DownloadCachePolicy
impl Debug for DownloadCachePolicy
Source§impl<'de> Deserialize<'de> for DownloadCachePolicy
impl<'de> Deserialize<'de> for DownloadCachePolicy
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
impl Eq for DownloadCachePolicy
Source§impl PartialEq for DownloadCachePolicy
impl PartialEq for DownloadCachePolicy
Source§impl Serialize for DownloadCachePolicy
impl Serialize for DownloadCachePolicy
impl StructuralPartialEq for DownloadCachePolicy
Auto Trait Implementations§
impl Freeze for DownloadCachePolicy
impl RefUnwindSafe for DownloadCachePolicy
impl Send for DownloadCachePolicy
impl Sync for DownloadCachePolicy
impl Unpin for DownloadCachePolicy
impl UnsafeUnpin for DownloadCachePolicy
impl UnwindSafe for DownloadCachePolicy
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<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
Compare self to
key and return true if they are equal.