#[non_exhaustive]pub enum CacheScope {
Public,
Private,
}Expand description
Scope of a cached result (SEP-2549).
Servers hint to clients how widely they may share a cached
tools/list, resources/read, etc. response. The final SEP-2549 wire
values are "public" and "private": Public means any client,
gateway, or proxy may cache and serve the result across authorization
contexts; Private restricts reuse to the same authorization context
(a different access token requires a different cache). None on the
parent field means the server expresses no opinion.
Earlier drafts of this crate used session/global values that never
matched the SEP text; they were replaced before any release advertised
2026-07-28 support.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Public
Any client, gateway, or proxy may cache and serve this result across authorization contexts.
Private
The cached result may only be reused within the same authorization context.
Trait Implementations§
Source§impl Clone for CacheScope
impl Clone for CacheScope
Source§fn clone(&self) -> CacheScope
fn clone(&self) -> CacheScope
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for CacheScope
Source§impl Debug for CacheScope
impl Debug for CacheScope
Source§impl<'de> Deserialize<'de> for CacheScope
impl<'de> Deserialize<'de> for CacheScope
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<CacheScope, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<CacheScope, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
impl Eq for CacheScope
Source§impl PartialEq for CacheScope
impl PartialEq for CacheScope
Source§impl Serialize for CacheScope
impl Serialize for CacheScope
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,
impl StructuralPartialEq for CacheScope
Auto Trait Implementations§
impl Freeze for CacheScope
impl RefUnwindSafe for CacheScope
impl Send for CacheScope
impl Sync for CacheScope
impl Unpin for CacheScope
impl UnsafeUnpin for CacheScope
impl UnwindSafe for CacheScope
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.