Skip to main content

Module org

Module org 

Source
Expand description

Organizations + memberships + invites — multi-tenant team management.

Sits alongside the existing in-memory OrganizationsPlugin in pylon_plugin::builtin::organizations but with:

  • Pluggable OrgBackend trait (in-memory default, SQLite + PG backends in pylon-runtime so orgs survive a restart)
  • Email invite flow with token + expiry + accept endpoint
  • Role enforcement helpers

The HTTP endpoints in routes/auth.rs use this directly. Apps that want their own org model can ignore the store and roll their own — pylon doesn’t force the schema, only ships the backend + endpoints when you opt in.

Structs§

InMemoryOrgBackend
Invite
InviteWithToken
Membership
Org
OrgStore

Enums§

AcceptError
OrgRole
Role within an organization.

Traits§

OrgBackend