pub struct GraphqlModule { /* private fields */ }Implementations§
Source§impl GraphqlModule
impl GraphqlModule
Trait Implementations§
Source§impl Default for GraphqlModule
impl Default for GraphqlModule
Source§fn default() -> GraphqlModule
fn default() -> GraphqlModule
Returns the “default value” for a type. Read more
Source§impl WafModule for GraphqlModule
impl WafModule for GraphqlModule
Source§fn structural(&self) -> bool
fn structural(&self) -> bool
Structural: its caps are not content-rule matches, so the content fast-path must not skip it (else a GraphQL DoS with no content signature would bypass).
fn id(&self) -> &str
fn phase(&self) -> Phase
Source§fn init(&mut self, cfg: &Config)
fn init(&mut self, cfg: &Config)
Called once at startup; compile/init rules here, never in
inspect.Source§fn inspect(&self, ctx: &RequestContext) -> Decision
fn inspect(&self, ctx: &RequestContext) -> Decision
Read-only access to context; pipeline owns mutation of
score.Auto Trait Implementations§
impl Freeze for GraphqlModule
impl RefUnwindSafe for GraphqlModule
impl Send for GraphqlModule
impl Sync for GraphqlModule
impl Unpin for GraphqlModule
impl UnsafeUnpin for GraphqlModule
impl UnwindSafe for GraphqlModule
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