pub enum ScopeValue {
Uuid(Uuid),
String(String),
Int(i64),
Bool(bool),
}Expand description
A scalar value for scope filtering.
Used in ScopeFilter predicates to represent typed values.
JSON conversion happens at the PDP/PEP boundary (see the PEP compiler),
not inside the security model.
Variants§
Uuid(Uuid)
UUID value (tenant IDs, resource IDs, etc.)
String(String)
String value (status, GTS type IDs, etc.)
Int(i64)
Integer value.
Bool(bool)
Boolean value.
Implementations§
Trait Implementations§
Source§impl Clone for ScopeValue
impl Clone for ScopeValue
Source§fn clone(&self) -> ScopeValue
fn clone(&self) -> ScopeValue
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ScopeValue
impl Debug for ScopeValue
Source§impl Display for ScopeValue
impl Display for ScopeValue
Source§impl From<&Uuid> for ScopeValue
impl From<&Uuid> for ScopeValue
Source§impl From<&str> for ScopeValue
impl From<&str> for ScopeValue
Source§impl From<String> for ScopeValue
impl From<String> for ScopeValue
Source§impl From<Uuid> for ScopeValue
impl From<Uuid> for ScopeValue
Source§impl From<bool> for ScopeValue
impl From<bool> for ScopeValue
Source§impl From<i64> for ScopeValue
impl From<i64> for ScopeValue
Source§impl Hash for ScopeValue
impl Hash for ScopeValue
Source§impl PartialEq for ScopeValue
impl PartialEq for ScopeValue
impl Eq for ScopeValue
impl StructuralPartialEq for ScopeValue
Auto Trait Implementations§
impl Freeze for ScopeValue
impl RefUnwindSafe for ScopeValue
impl Send for ScopeValue
impl Sync for ScopeValue
impl Unpin for ScopeValue
impl UnsafeUnpin for ScopeValue
impl UnwindSafe for ScopeValue
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