#[non_exhaustive]pub enum DenyReason {
Show 15 variants
MalformedToken,
UnknownToken,
TenantOrWorkspaceMismatch,
DomainNotFound,
PrincipalNotAllowed,
ClassNotAllowed,
NoMatchingAllowRule,
CrossDomainDenied,
ExpiredHandle,
ReplayedHandle,
HandleDomainMismatch,
EntityRefMismatch,
SessionPrincipalMismatch,
SnippetsDisabled,
TranslatorFailed,
}Expand description
Why a bridge request or handle execution was denied. All paths fail closed.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
MalformedToken
Source token is not a well-formed gaze token.
UnknownToken
Token is well-formed but absent from the active session manifest.
TenantOrWorkspaceMismatch
Principal tenant/workspace does not match the request or target domain.
DomainNotFound
Target domain is not registered.
PrincipalNotAllowed
Principal lacks a role the domain allows.
ClassNotAllowed
Entity class is not bridgeable into the target domain.
NoMatchingAllowRule
No allow rule matched (default-deny).
CrossDomainDenied
Cross-domain search attempted without elevated, mutually-allowing policy.
ExpiredHandle
SearchHandle is past its expiry tick.
ReplayedHandle
SearchHandle nonce was already consumed (replay).
HandleDomainMismatch
Handle’s entity_ref domain does not match its target domain.
EntityRefMismatch
Requested entity_ref does not match the entity_ref the handle was minted for.
SessionPrincipalMismatch
Session is bound to a different principal than the requester.
SnippetsDisabled
Domain forbids returning snippets.
TranslatorFailed
Response translation could not map all index aliases to session tokens.
Trait Implementations§
Source§impl Clone for DenyReason
impl Clone for DenyReason
Source§fn clone(&self) -> DenyReason
fn clone(&self) -> DenyReason
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for DenyReason
impl Debug for DenyReason
Source§impl<'de> Deserialize<'de> for DenyReason
impl<'de> Deserialize<'de> for DenyReason
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>,
impl Eq for DenyReason
Source§impl PartialEq for DenyReason
impl PartialEq for DenyReason
Source§fn eq(&self, other: &DenyReason) -> bool
fn eq(&self, other: &DenyReason) -> bool
self and other values to be equal, and is used by ==.Source§impl Serialize for DenyReason
impl Serialize for DenyReason
impl StructuralPartialEq for DenyReason
Auto Trait Implementations§
impl Freeze for DenyReason
impl RefUnwindSafe for DenyReason
impl Send for DenyReason
impl Sync for DenyReason
impl Unpin for DenyReason
impl UnsafeUnpin for DenyReason
impl UnwindSafe for DenyReason
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
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§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.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>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more