pub enum CacheEndpoint {
Url(String),
Credentials {
base_url: String,
username: Option<String>,
password: Option<String>,
},
}Expand description
Cache backend endpoint input.
The untagged representation preserves the existing string configuration while allowing a structured base URL plus raw credentials.
Variants§
Url(String)
A complete backend URL. Existing percent-encoded Redis URLs use this mode.
Credentials
A base URL without userinfo plus raw credentials.
Implementations§
Trait Implementations§
Source§impl Clone for CacheEndpoint
impl Clone for CacheEndpoint
Source§fn clone(&self) -> CacheEndpoint
fn clone(&self) -> CacheEndpoint
Returns a duplicate 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 CacheEndpoint
impl Debug for CacheEndpoint
Source§impl Default for CacheEndpoint
impl Default for CacheEndpoint
Source§impl<'de> Deserialize<'de> for CacheEndpoint
impl<'de> Deserialize<'de> for CacheEndpoint
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 From<&str> for CacheEndpoint
impl From<&str> for CacheEndpoint
Source§impl From<String> for CacheEndpoint
impl From<String> for CacheEndpoint
Source§impl PartialEq for CacheEndpoint
impl PartialEq for CacheEndpoint
Source§impl Serialize for CacheEndpoint
impl Serialize for CacheEndpoint
impl Eq for CacheEndpoint
impl StructuralPartialEq for CacheEndpoint
Auto Trait Implementations§
impl Freeze for CacheEndpoint
impl RefUnwindSafe for CacheEndpoint
impl Send for CacheEndpoint
impl Sync for CacheEndpoint
impl Unpin for CacheEndpoint
impl UnwindSafe for CacheEndpoint
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§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 Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more