Skip to main content

Module sync_record

Module sync_record 

Source
Expand description

A Vault entry as the body of a sync record (docs/specs/SPEC_VAULT_SHARED_ACROSS_MACHINES_LAN_AND_CLOUD_2026_11_01.md sections 6.1 and 6.6): what goes inside the seal of super::sync_seal, and what a machine that receives one makes of it.

The body holds the entry’s kind, label, plain fields, tags and secret parts, and when it was made and last changed. It leaves out what is the machine’s own: who a login is shared with (the agents of one machine, shares::SHARED), when the entry was last used here, and the grants (a table of their own, which never syncs). The values are in clear inside the body, so the body is wiped when dropped and never printed.

Structs§

EntryBody
An entry as a sync record carries it.
Known
The profiles of this machine, as browser_profiles_store::read_profiles lists them.

Constants§

LOCAL_FIELDS
The plain fields that name this machine’s agents, which a synced entry neither sends nor overwrites.
PROFILE_FROM
On a sign-in received for a profile this machine does not have: the name of that profile. The sign-in is shown under Personal, marked with it.
PROFILE_NAME
The plain field that names the browser profile a sign-in belongs to, in place of profile: a profile’s id is made on one machine and means nothing on another, its name is what the person sees on both.

Traits§

Profiles
The person’s browser profiles of one machine, by id and by name.

Functions§

stays_here
Whether row is one this machine keeps to itself: a sign-in in the own browsing profile of an agent, or in a profile that has no name here. Such an entry would land under Personal on another machine, where more of the person’s tabs may use it than the profile it was saved for, so it does not go.