From 2eee0eb0342b8b407d04c532874eb6f8493fedcd Mon Sep 17 00:00:00 2001 From: robjtede Date: Mon, 11 Jul 2022 11:49:09 +0000 Subject: [PATCH] =?UTF-8?q?Deploying=20to=20gh-pages=20from=20=20@=20d3fb5?= =?UTF-8?q?643809a415662c0c7bb8d57a4ddbc4b6c32=20=F0=9F=9A=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- actix_session/struct.Session.html | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/actix_session/struct.Session.html b/actix_session/struct.Session.html index 983f3f9db..4b8ffc87d 100644 --- a/actix_session/struct.Session.html +++ b/actix_session/struct.Session.html @@ -25,18 +25,18 @@ request handlers and it will be automatically extracted from the incoming reques }

You can also retrieve a Session object from an HttpRequest or a ServiceRequest using SessionExt.

-

Implementations

Get a value from the session.

+

Implementations

Get a value from the session.

It returns an error if it fails to deserialize as T the JSON value associated with key.

Get all raw key-value data from the session.

Note that values are JSON encoded.

Returns session status.

-

Inserts a key-value pair into the session.

+

Inserts a key-value pair into the session.

Any serializable value can be used and will be encoded as JSON in session data, hence why only a reference to the value is taken.

It returns an error if it fails to serialize value to JSON.

Remove value from the session.

If present, the JSON encoded value is returned.

-

Remove value from the session and deserialize.

+

Remove value from the session and deserialize.

Returns None if key was not present in session. Returns T if deserialization succeeds, otherwise returns un-deserialized JSON string.

Clear the session.