pub enum VectorGuardDenyReason {
NotAVectorAccess,
NotVectorFlavored {
database: String,
},
CollectionNotAllowed {
collection: String,
},
NoConfig,
NamespaceNotAllowed {
namespace: String,
},
OperationNotAllowed {
operation: String,
},
TopKExceedsLimit {
requested: u64,
max: u64,
},
ParseError {
error: String,
},
}Expand description
Structured reason for a VectorDbGuard denial.
Variants§
NotAVectorAccess
The tool action is not a database/memory style access the guard can reason about, but policy requires one. Emitted only in tests; the guard passes through unknown actions at runtime.
NotVectorFlavored
The request does not target a vector database according to the
configured vendor substrings and allow_all is disabled.
CollectionNotAllowed
A referenced collection is not on the operator’s allowlist.
NoConfig
The collection allowlist is empty and allow_all is false.
NamespaceNotAllowed
The request targets a namespace that is not permitted by the active grant.
OperationNotAllowed
The operation verb was denied (for example an upsert under a
read-only grant).
TopKExceedsLimit
A top_k (or equivalent) value exceeds the configured ceiling.
ParseError
The arguments could not be parsed.
Implementations§
Trait Implementations§
Source§impl Clone for VectorGuardDenyReason
impl Clone for VectorGuardDenyReason
Source§fn clone(&self) -> VectorGuardDenyReason
fn clone(&self) -> VectorGuardDenyReason
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for VectorGuardDenyReason
impl Debug for VectorGuardDenyReason
Source§impl Display for VectorGuardDenyReason
impl Display for VectorGuardDenyReason
Source§impl Error for VectorGuardDenyReason
impl Error for VectorGuardDenyReason
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()
Source§impl PartialEq for VectorGuardDenyReason
impl PartialEq for VectorGuardDenyReason
impl Eq for VectorGuardDenyReason
impl StructuralPartialEq for VectorGuardDenyReason
Auto Trait Implementations§
impl Freeze for VectorGuardDenyReason
impl RefUnwindSafe for VectorGuardDenyReason
impl Send for VectorGuardDenyReason
impl Sync for VectorGuardDenyReason
impl Unpin for VectorGuardDenyReason
impl UnsafeUnpin for VectorGuardDenyReason
impl UnwindSafe for VectorGuardDenyReason
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,
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> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.