pub struct Entity<C: EntityCategory> {
pub id: EntityId,
pub category: C,
pub title: String,
pub doc: Option<String>,
pub source_span: Option<Span>,
pub body: EntityBody,
}Expand description
Parser-side entity with a family-typed category.
In-memory view produced by contract-family parsers. Convert to wire
StoredEntity when building a ReferenceManual.
Fields§
§id: EntityIdEntity address within the loaded contract.
category: CFamily-specific typed category marker.
title: StringHuman-readable entity title.
doc: Option<String>Leading documentation prose, when present.
source_span: Option<Span>Source span within the input document, when available.
Parser-local provenance; maps to wire Source at serialize time.
body: EntityBodyCategory-specific entity payload.
Trait Implementations§
impl<C: Eq + EntityCategory> Eq for Entity<C>
impl<C: PartialEq + EntityCategory> StructuralPartialEq for Entity<C>
Auto Trait Implementations§
impl<C> Freeze for Entity<C>where
C: Freeze,
impl<C> RefUnwindSafe for Entity<C>where
C: RefUnwindSafe,
impl<C> Send for Entity<C>
impl<C> Sync for Entity<C>
impl<C> Unpin for Entity<C>where
C: Unpin,
impl<C> UnsafeUnpin for Entity<C>where
C: UnsafeUnpin,
impl<C> UnwindSafe for Entity<C>where
C: UnwindSafe,
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