pub enum PolicyCategory {
Read,
Write,
Delete,
Fields,
Admin,
}Expand description
Unified policy category for grouping in the UI. Works consistently across GraphQL, OpenAPI, and SQL servers.
Variants§
Read
Read operations (Query, GET, SELECT)
Write
Write operations (create/update mutations, POST/PUT/PATCH, INSERT/UPDATE)
Delete
Delete operations (delete mutations, DELETE, DELETE/TRUNCATE)
Fields
Field-level access policies
Admin
Administrative operations (introspection, DDL, schema changes)
Trait Implementations§
Source§impl Clone for PolicyCategory
impl Clone for PolicyCategory
Source§fn clone(&self) -> PolicyCategory
fn clone(&self) -> PolicyCategory
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 PolicyCategory
impl Debug for PolicyCategory
Source§impl Default for PolicyCategory
impl Default for PolicyCategory
Source§fn default() -> PolicyCategory
fn default() -> PolicyCategory
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for PolicyCategory
impl<'de> Deserialize<'de> for PolicyCategory
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
Source§impl Display for PolicyCategory
impl Display for PolicyCategory
Source§impl FromStr for PolicyCategory
impl FromStr for PolicyCategory
Source§impl Hash for PolicyCategory
impl Hash for PolicyCategory
Source§impl PartialEq for PolicyCategory
impl PartialEq for PolicyCategory
Source§impl Serialize for PolicyCategory
impl Serialize for PolicyCategory
impl Copy for PolicyCategory
impl Eq for PolicyCategory
impl StructuralPartialEq for PolicyCategory
Auto Trait Implementations§
impl Freeze for PolicyCategory
impl RefUnwindSafe for PolicyCategory
impl Send for PolicyCategory
impl Sync for PolicyCategory
impl Unpin for PolicyCategory
impl UnsafeUnpin for PolicyCategory
impl UnwindSafe for PolicyCategory
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
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
Compare self to
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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.