pub enum DiscoverResultCacheScope {
Private,
Public,
}Expand description
Indicates the intended scope of the cached response, analogous to HTTP Cache-Control: public vs Cache-Control: private.
- “public”: The response does not contain user-specific data. Any client or intermediary (e.g., shared gateway, caching proxy) MAY cache the response and serve it across authorization contexts.
- “private”: The response MAY be cached and reused only within the same authorization context. Caches MUST NOT be shared across authorization contexts (e.g., a different access token requires a different cache).
JSON schema
{
"description": "Indicates the intended scope of the cached response, analogous to HTTP\nCache-Control: public vs Cache-Control: private.\n\n- \"public\": The response does not contain user-specific data. Any\n client or intermediary (e.g., shared gateway, caching proxy) MAY cache\n the response and serve it across authorization contexts.\n- \"private\": The response MAY be cached and reused only within the\n same authorization context. Caches MUST NOT be shared across\n authorization contexts (e.g., a different access token requires a\n different cache).",
"type": "string",
"enum": [
"private",
"public"
]
}Variants§
Trait Implementations§
Source§impl Clone for DiscoverResultCacheScope
impl Clone for DiscoverResultCacheScope
Source§fn clone(&self) -> DiscoverResultCacheScope
fn clone(&self) -> DiscoverResultCacheScope
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 DiscoverResultCacheScope
Source§impl Debug for DiscoverResultCacheScope
impl Debug for DiscoverResultCacheScope
Source§impl<'de> Deserialize<'de> for DiscoverResultCacheScope
impl<'de> Deserialize<'de> for DiscoverResultCacheScope
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<DiscoverResultCacheScope, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<DiscoverResultCacheScope, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for DiscoverResultCacheScope
impl Display for DiscoverResultCacheScope
impl Eq for DiscoverResultCacheScope
Source§impl Hash for DiscoverResultCacheScope
impl Hash for DiscoverResultCacheScope
Source§impl Ord for DiscoverResultCacheScope
impl Ord for DiscoverResultCacheScope
Source§fn cmp(&self, other: &DiscoverResultCacheScope) -> Ordering
fn cmp(&self, other: &DiscoverResultCacheScope) -> Ordering
1.21.0 (const: unstable) · 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 for DiscoverResultCacheScope
impl PartialEq for DiscoverResultCacheScope
Source§impl PartialOrd for DiscoverResultCacheScope
impl PartialOrd for DiscoverResultCacheScope
Source§impl Serialize for DiscoverResultCacheScope
impl Serialize for DiscoverResultCacheScope
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for DiscoverResultCacheScope
Auto Trait Implementations§
impl Freeze for DiscoverResultCacheScope
impl RefUnwindSafe for DiscoverResultCacheScope
impl Send for DiscoverResultCacheScope
impl Sync for DiscoverResultCacheScope
impl Unpin for DiscoverResultCacheScope
impl UnsafeUnpin for DiscoverResultCacheScope
impl UnwindSafe for DiscoverResultCacheScope
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