pub struct Occurrence {
pub id: String,
pub concept: String,
pub path: String,
pub owner: String,
pub line: u32,
}Expand description
One concrete occurrence of a concept (schema/reactive) in a source file.
Concept entities (SCHEMA/REACTIVE) are keyed globally by (kind, name) —
the same z.object({...}) in A.ts and B.ts is ONE concept. Occurrences
carry per-(concept, path, owner, line) identity instead: each file’s
occurrence survives independently, so provenance (sources) and the
derived occurrence count never collapse and a purge of one path never
deletes an occurrence another path still has.
Fields§
§id: StringStable entity id (see occurrence_id).
concept: StringThe concept entity id this occurrence belongs to.
path: StringRepository-relative source path.
owner: StringOwning symbol name.
line: u32Deterministic site line (owning symbol’s start line when the extractor facts carry no line).
Trait Implementations§
Source§impl Clone for Occurrence
impl Clone for Occurrence
Source§impl Debug for Occurrence
impl Debug for Occurrence
Source§impl<'de> Deserialize<'de> for Occurrence
impl<'de> Deserialize<'de> for Occurrence
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for Occurrence
impl RefUnwindSafe for Occurrence
impl Send for Occurrence
impl Sync for Occurrence
impl Unpin for Occurrence
impl UnsafeUnpin for Occurrence
impl UnwindSafe for Occurrence
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