Struct sccache::config::MemcachedCacheConfig
source · pub struct MemcachedCacheConfig {
pub url: String,
pub username: Option<String>,
pub password: Option<String>,
pub expiration: u32,
pub key_prefix: String,
}
Fields§
§url: String
§username: Option<String>
Username to authenticate with.
password: Option<String>
Password to authenticate with.
expiration: u32
the expiration time in seconds.
Default to 24 hours (86400) Up to 30 days (2592000)
key_prefix: String
Trait Implementations§
source§impl Debug for MemcachedCacheConfig
impl Debug for MemcachedCacheConfig
source§impl Default for MemcachedCacheConfig
impl Default for MemcachedCacheConfig
source§fn default() -> MemcachedCacheConfig
fn default() -> MemcachedCacheConfig
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for MemcachedCacheConfig
impl<'de> Deserialize<'de> for MemcachedCacheConfig
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 PartialEq for MemcachedCacheConfig
impl PartialEq for MemcachedCacheConfig
source§fn eq(&self, other: &MemcachedCacheConfig) -> bool
fn eq(&self, other: &MemcachedCacheConfig) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for MemcachedCacheConfig
impl Serialize for MemcachedCacheConfig
impl Eq for MemcachedCacheConfig
impl StructuralPartialEq for MemcachedCacheConfig
Auto Trait Implementations§
impl Freeze for MemcachedCacheConfig
impl RefUnwindSafe for MemcachedCacheConfig
impl Send for MemcachedCacheConfig
impl Sync for MemcachedCacheConfig
impl Unpin for MemcachedCacheConfig
impl UnwindSafe for MemcachedCacheConfig
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<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.