pub struct Grant {
pub node: Path,
pub mount: RustSafeName,
}Expand description
ONE write grant: the node it names, and the accessor that names it back.
Fields§
§node: PathThe granted node, as a PATH — for RecordModel::subscribe’s reason: nothing here can resolve
it, the store being another declaration’s, and the compiler resolves it where the expansion
lands.
mount: RustSafeNameThe granted node’s MOUNT NAME — the path’s last segment, folded to snake case, which is the
word the emitted accessor is built from (media mints media_write).
Read off the declaration rather than declared, because the derive that writes the grant cannot see the derive that declares the store: the last segment is the only name both ends hold. Two grants IN ONE ENTRY whose mounts agree are refused at the front end; two entries granting the same store are legal and hold it in two contexts.