[−][src]Type Definition schemeguardian::global::GenericPayload
type GenericPayload<R> = (SecretString, GenericRole<R>, Option<SecretString>);
A return value to an of the operation. It contains the payload of the AuthPayload
(user, role, target)
Example
use schemeguardian::GenericPayload; use schemeguardian::GenericRole; enum MyUserEnum {Foo, Bar} fn fetch_from_db<R>() -> GenericPayload<R> { // some code here (Default::default(), GenericRole::Unspecified, Default::default()) }