pub enum EntityRef {
Document,
Block(BlockId),
Pin(PinId),
Route(RouteId),
RouteLabel(RouteLabelId),
Text(TextId),
Area(AreaId),
Image(ImageId),
Asset(AssetHash),
}Expand description
One reference to anything an op can touch — the id union that a note’s anchor, the spotlight’s footprints, and every “what did this op target” question share, so the entity kinds are never enumerated twice.
Displays in the log’s narration spelling (block <id>,
document, asset <hash>), which is what makes
OpCodes::narrate a
composition over this type instead of a second list of the kinds.
That spelling is also the wire form: a manifest row’s touched
list is the same names a reader greps for.
Variants§
Document
Block(BlockId)
Pin(PinId)
Route(RouteId)
RouteLabel(RouteLabelId)
Text(TextId)
Area(AreaId)
Image(ImageId)
Asset(AssetHash)
Trait Implementations§
Source§impl<'de> Deserialize<'de> for EntityRef
impl<'de> Deserialize<'de> for EntityRef
Source§fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for EntityRef
The wire form is the narration spelling, so a touched list reads as
the names a bug report and a grep both carry.
impl Serialize for EntityRef
The wire form is the narration spelling, so a touched list reads as
the names a bug report and a grep both carry.
impl Copy for EntityRef
impl Eq for EntityRef
impl StructuralPartialEq for EntityRef
Auto Trait Implementations§
impl Freeze for EntityRef
impl RefUnwindSafe for EntityRef
impl Send for EntityRef
impl Sync for EntityRef
impl Unpin for EntityRef
impl UnsafeUnpin for EntityRef
impl UnwindSafe for EntityRef
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more