pub enum AuthAggregate {
Providers(AuthEvent),
Login(AuthEvent),
Signup(AuthEvent),
Whoami(AuthEvent),
Logout(AuthEvent),
Requires(AuthEvent),
Roles(AuthEvent),
RoleSet(AuthEvent),
Grant(AuthEvent),
Revoke(AuthEvent),
Waiting(AuthEvent),
}Expand description
The auth activation’s event: one variant per method, keyed by the method’s wire name, carrying that method’s item, then one per #[child], keyed by its route segment, carrying the child’s own aggregate — derived by #[plexus_macros::activation(client)], never sent on the wire.
Wire shape {"method": "<name>", "event": <item>}, a Result item as {"ok"} / {"err"}; a static child’s event as {"method": "<child>", "event": <child's aggregate>}, a dynamic child’s as {"method": "<child>", "event": {"name": "<instance>", "event": <child's aggregate>}} (RETURNS-46). A many-item call’s .events() yields it — from a call anywhere below a client, that client’s aggregate; merging several calls into one listener is ordinary stream plumbing. Progress and call failures are not items, so they are not here.
Variants§
Providers(AuthEvent)
An item of auth.providers.
Login(AuthEvent)
An item of auth.login.
Signup(AuthEvent)
An item of auth.signup.
Whoami(AuthEvent)
An item of auth.whoami.
Logout(AuthEvent)
An item of auth.logout.
Requires(AuthEvent)
An item of auth.requires.
Roles(AuthEvent)
An item of auth.roles.
RoleSet(AuthEvent)
An item of auth.role_set.
Grant(AuthEvent)
An item of auth.grant.
Revoke(AuthEvent)
An item of auth.revoke.
Waiting(AuthEvent)
An item of auth.waiting.