State#
- class gafaelfawr.models.state.State(**data)#
Bases:
BaseState
,BaseModel
State information stored in a cookie.
- Parameters:
data (
Any
)
Attributes Summary
Configuration for the model, should be a dictionary conforming to [
ConfigDict
][pydantic.config.ConfigDict].Methods Summary
from_cookie
(cookie[, request])Reconstruct state from an encrypted cookie.
Build an encrypted cookie representation of the state.
Attributes Documentation
- model_config: ClassVar[ConfigDict] = {}#
Configuration for the model, should be a dictionary conforming to [
ConfigDict
][pydantic.config.ConfigDict].
Methods Documentation
- async classmethod from_cookie(cookie, request=None)#
Reconstruct state from an encrypted cookie.
- Parameters:
- Returns:
The state represented by the cookie.
- Return type: