pub fn new(poll: Option<AxumDatabasePool>, anonymous_user_id: Option<i64>) -> Self {
        Self {
            poll,
            anonymous_user_id,
            phantom: PhantomData::default(),
        }
    }
/// Used to generate an AuthSessionLayer with will call Towers layer() to generate a AuthSessionService.
///
/// contains an Optional axum_session_database Pool for Sqlx database lookups against Right tokens.
///
/// # Examples
/// ```rust no_run
///    let layer = AuthSessionLayer::new(None, Some(1));
/// ```
///
Used to generate an AuthSessionLayer with will call Towers layer() to generate a AuthSessionService.
contains an Optional axum_session_database Pool for Sqlx database lookups against Right tokens.
Used to generate an AuthSessionLayer with will call Towers layer () to generate a AuthSessionService . contains an Optional axum_session_database Pool for Sqlx database lookups against Right tokens .
pub fn new(poll: Option<AxumDatabasePool>, anonymous_user_id: Option<i64>) -> Self {
        Self {
            poll,
            anonymous_user_id,
            phantom: PhantomData::default(),
        }
    }
pub fn new ( poll : Option < AxumDatabasePool > , anonymous_user_id : Option < i64 > ) -> Self { Self { poll , anonymous_user_id , phantom : PhantomData :: default ( ) , } }
Used to generate an AuthSessionLayer with will call Towers layer() to generate a AuthSessionService.
Used to generate an AuthSessionLayer with will call Towers layer () to generate a AuthSessionService .
poll
Option<AxumDatabasePool>
anonymous_user_id
Option<i64>
poll
Option<AxumDatabasePool>
anonymous_user_id
Option<i64>
examples
```rust no_run
let layer = AuthSessionLayer::new(None, Some(1));
```
` ` ` rust no_run let layer = AuthSessionLayer :: new ( None Some ( 1 )) ; ` ` `