pub enum PersistedQueryMode {
Disabled,
Automatic,
Trusted,
}Expand description
How persisted operations are treated.
Variants§
Disabled
Free-form documents only. A hash-only request is refused with
PERSISTED_QUERY_NOT_SUPPORTED so the client falls back to sending
the full document.
Automatic
Apollo Automatic Persisted Queries: a client may send only a
sha256Hash; on a miss it re-sends the document, which is verified
and cached. Free-form documents are still accepted. Trusted documents
from a manifest are served too.
Trusted
Trusted documents (a safelist): only operations whose hash is in the
manifest may run, whether the client sends the hash or the full text.
Everything else is refused with OPERATION_NOT_ALLOWLISTED.
Trait Implementations§
Source§impl Clone for PersistedQueryMode
impl Clone for PersistedQueryMode
impl Copy for PersistedQueryMode
Source§impl Debug for PersistedQueryMode
impl Debug for PersistedQueryMode
Source§impl Default for PersistedQueryMode
impl Default for PersistedQueryMode
Source§impl<'de> Deserialize<'de> for PersistedQueryMode
impl<'de> Deserialize<'de> for PersistedQueryMode
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 PersistedQueryMode
Source§impl PartialEq for PersistedQueryMode
impl PartialEq for PersistedQueryMode
Source§impl Serialize for PersistedQueryMode
impl Serialize for PersistedQueryMode
impl StructuralPartialEq for PersistedQueryMode
Auto Trait Implementations§
impl Forget for PersistedQueryMode
impl Freeze for PersistedQueryMode
impl RefUnwindSafe for PersistedQueryMode
impl Send for PersistedQueryMode
impl Sync for PersistedQueryMode
impl Unpin for PersistedQueryMode
impl UnsafeUnpin for PersistedQueryMode
impl UnwindSafe for PersistedQueryMode
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
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§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.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
impl<T> JsonSink for T
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
Source§impl<T> Scoped for T
impl<T> Scoped for T
Source§fn scope(ctx: &PolicyContext) -> ScopeQuery<'_, Self>
fn scope(ctx: &PolicyContext) -> ScopeQuery<'_, Self>
Open a deferred
ScopeQuery for this type. Resolves the
registered scope at .load() time, not here.