pub struct OperationEntity {
pub id: String,
pub operation_type: String,
pub operation_name: String,
pub root_fields: HashSet<String>,
pub accessed_types: HashSet<String>,
pub accessed_fields: HashSet<String>,
pub depth: u32,
pub field_count: u32,
pub estimated_cost: u32,
pub has_introspection: bool,
pub accesses_sensitive_data: bool,
pub sensitive_categories: HashSet<String>,
}Expand description
Operation entity for policy evaluation.
Fields§
§id: StringUnique ID for this operation
operation_type: StringOperation type: “query”, “mutation”, or “subscription”
operation_name: StringOperation name (if provided)
root_fields: HashSet<String>Root fields accessed
accessed_types: HashSet<String>Types accessed
accessed_fields: HashSet<String>Fields accessed (Type.field format)
depth: u32Query nesting depth
field_count: u32Total field count
estimated_cost: u32Estimated query cost
has_introspection: boolWhether introspection is used
accesses_sensitive_data: boolWhether sensitive data is accessed
sensitive_categories: HashSet<String>Sensitive data categories accessed
Implementations§
Source§impl OperationEntity
impl OperationEntity
Sourcepub fn from_query_info(query_info: &GraphQLQueryInfo) -> Self
pub fn from_query_info(query_info: &GraphQLQueryInfo) -> Self
Create from GraphQL query info.
Trait Implementations§
Source§impl Clone for OperationEntity
impl Clone for OperationEntity
Source§fn clone(&self) -> OperationEntity
fn clone(&self) -> OperationEntity
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 moreAuto Trait Implementations§
impl Freeze for OperationEntity
impl RefUnwindSafe for OperationEntity
impl Send for OperationEntity
impl Sync for OperationEntity
impl Unpin for OperationEntity
impl UnsafeUnpin for OperationEntity
impl UnwindSafe for OperationEntity
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