wtx 0.28.0

A collection of different transport implementations and related tools focused primarily on web technologies.
1
2
3
4
5
6
7
8
9
10
11
12
13
use crate::http::session::SessionId;
use chrono::{DateTime, Utc};

/// Data that is saved in the corresponding store.
#[derive(Clone, Copy, Debug, PartialEq, serde::Deserialize, serde::Serialize)]
pub struct SessionState<CS> {
  /// Custom state
  pub custom_state: CS,
  /// Cookie expiration
  pub expires: Option<DateTime<Utc>>,
  /// Identifier
  pub id: SessionId,
}