nest-rs-guards 0.2.0

Transport-spanning guards for nestrs — one trait, three transports (HTTP, GraphQL, WS), declared once with App::builder().use_guards_global(...).
Documentation
//! Re-export everything a custom guard implementation needs in one `use`.
//!
//! ```rust,ignore
//! use nest_rs_guards::prelude::*;
//!
//! #[injectable]
//! #[derive(Default)]
//! pub struct MyGuard;
//!
//! impl Layer for MyGuard {}
//!
//! #[async_trait]
//! impl Guard for MyGuard {
//!     async fn check_http(&self, _req: &mut HttpRequest) -> Result<(), Denial> {
//!         Ok(())
//!     }
//! }
//! ```

pub use crate::{
    AppBuilderGuardsExt, AppBuilderPipesExt, Denial, Guard, GuardSpec, PipeSpec, guard, pipe,
};
pub use async_trait::async_trait;
pub use nest_rs_core::{HandlerMetadata, Layer, LayerKind, LayerSite, Public, injectable};
pub use nest_rs_graphql::async_graphql::Context as GraphqlContext;
pub use nest_rs_http::poem::Request as HttpRequest;
pub use nest_rs_ws::WsClient;
pub use serde_json::Value as WsMessageData;