pub struct EntityRecord {
pub entity: Entity,
pub keys: Vec<String>,
pub aliases: Vec<EntityAlias>,
}Expand description
An entity with the caller keys it holds and its aliases.
Every change-set carrier that copies a whole entity uses this record: a
delete preimage, a restore record, both sides of a merge preimage, and the
current entities an inversion reads. keys are the caller keys the entity
holds under its own kind; aliases are its aliases with the origin that
wrote each one. A change set is a trusted carrier for origins, with the same
standing as an archive: they are written as given.
Both lists are omitted from the wire when empty, so an entity that holds
neither serializes exactly as the bare entity record. Comparisons read each
list as a set; see EntityRecord::same_names. A record that names one
key or one alias twice, whatever the origins, is refused when it is read.
Fields§
§entity: EntityThe entity row.
keys: Vec<String>Caller keys the entity holds under its kind.
aliases: Vec<EntityAlias>Aliases the entity holds, with their origins.