pub struct AuthSetup {
pub backend: Arc<dyn AuthBackend>,
pub roles: Arc<dyn RoleStore>,
pub memberships: Arc<dyn MembershipStore>,
pub resolve: Arc<dyn Resolve>,
pub generation: Option<GrantsGeneration>,
}Expand description
What DynamicHub::with_auth takes.
Fields§
§backend: Arc<dyn AuthBackend>§roles: Arc<dyn RoleStore>§memberships: Arc<dyn MembershipStore>§resolve: Arc<dyn Resolve>§generation: Option<GrantsGeneration>BIDIR-8: the service’s grants generation, when it shares one between
this service’s call gate and gates of its own (menger’s access
layer); else the call gate counts alone. auth.grant, auth.revoke,
auth.role_set and auth.logout move it.
Implementations§
Source§impl AuthSetup
impl AuthSetup
pub fn new( backend: Arc<dyn AuthBackend>, roles: Arc<dyn RoleStore>, memberships: Arc<dyn MembershipStore>, resolve: Arc<dyn Resolve>, ) -> Self
Sourcepub fn with_generation(self, generation: GrantsGeneration) -> Self
pub fn with_generation(self, generation: GrantsGeneration) -> Self
BIDIR-8: the service’s call gate counts its moves in generation, shared with
whatever else the service decides by it.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for AuthSetup
impl !UnwindSafe for AuthSetup
impl Forget for AuthSetup
impl Freeze for AuthSetup
impl Send for AuthSetup
impl Sync for AuthSetup
impl Unpin for AuthSetup
impl UnsafeUnpin for AuthSetup
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more