Skip to main content

Module profile_visibility

Module profile_visibility 

Source
Expand description

Per-section profile visibility filtering.

Profile sections are gated via <field>.vis markers in the tenant’s extension (x) map. This module supplies the pure logic for parsing those markers and deciding whether a particular caller may view each section.

The cloudillo-profile crate uses these primitives to strip gated sections from /api/me and /api/me/full responses.

Structs§

RequesterTier
Caller’s relationship to the tenant being viewed.

Enums§

CommunityRole
Community role labels recognised in <field>.vis markers and in AuthCtx.roles. Ordered: Supporter < Contributor < Moderator < Leader.
SectionVisibility
Required visibility level for a profile section, parsed from <field>.vis.