Skip to main content

Module profile

Module profile 

Source
Expand description

Profile types and sync — compact internal representation + relay fetching.

The id field is a u16 interner handle — the canonical npub string lives in NpubInterner (single source of truth). Use SlimProfile at serialization boundaries (frontend, DB).

The sync submodule has the priority queue, background processor, and load_profile relay fetch logic.

Re-exports§

pub use sync::SyncPriority;
pub use sync::ProfileSyncHandler;
pub use sync::NoOpProfileSyncHandler;

Modules§

sync
Profile sync — priority queue, background processor, and relay fetching.

Structs§

Profile
Internal profile with u16 interner handle. All string fields use Box<str> (16B) instead of String (24B) — profile strings are write-once from metadata.
ProfileFlags
SlimProfile
Profile with npub string instead of interner handle. Used for:
Status