pub struct ServerConfigEntity {Show 13 fields
pub server_id: String,
pub server_type: String,
pub allow_write: bool,
pub allow_delete: bool,
pub allow_admin: bool,
pub allowed_operations: HashSet<String>,
pub blocked_operations: HashSet<String>,
pub max_depth: u32,
pub max_field_count: u32,
pub max_cost: u32,
pub max_api_calls: u32,
pub blocked_fields: HashSet<String>,
pub allowed_sensitive_categories: HashSet<String>,
}Expand description
Server configuration for policy evaluation.
Uses unified attribute names that match the Cedar schema:
allow_write,allow_delete,allow_admin(unified action flags)blocked_operations,allowed_operations(unified operation lists)
Fields§
§server_id: StringServer ID
server_type: StringServer type (e.g., “graphql”)
allow_write: boolWhether write operations (mutations) are allowed
allow_delete: boolWhether delete operations are allowed
allow_admin: boolWhether admin operations (introspection) are allowed
allowed_operations: HashSet<String>Allowed operation names (allowlist mode)
blocked_operations: HashSet<String>Blocked operation names (blocklist mode)
max_depth: u32Maximum query depth
max_field_count: u32Maximum field count
max_cost: u32Maximum estimated cost
max_api_calls: u32Maximum API calls (for compatibility with unified schema)
blocked_fields: HashSet<String>Fields that should be blocked
allowed_sensitive_categories: HashSet<String>Allowed sensitive data categories
Trait Implementations§
Source§impl Clone for ServerConfigEntity
impl Clone for ServerConfigEntity
Source§fn clone(&self) -> ServerConfigEntity
fn clone(&self) -> ServerConfigEntity
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 ServerConfigEntity
impl Debug for ServerConfigEntity
Auto Trait Implementations§
impl Freeze for ServerConfigEntity
impl RefUnwindSafe for ServerConfigEntity
impl Send for ServerConfigEntity
impl Sync for ServerConfigEntity
impl Unpin for ServerConfigEntity
impl UnsafeUnpin for ServerConfigEntity
impl UnwindSafe for ServerConfigEntity
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