[][src]Type Definition schemeguardian::global::Payload

type Payload = (SecretString, ImmutableRole);

A return value to an of the operation. It contains the payload of the AuthPayload

(user, role)

Example

use schemeguardian::Payload;
use schemeguardian::ImmutableRole;
enum MyUserEnum {Foo, Bar}
fn fetch_from_db() -> Payload {
    // some code here
    (Default::default(), ImmutableRole::Unspecified)
}