pub struct StoredEntity {
pub name: String,
pub category: String,
pub title: String,
pub doc: Option<String>,
pub source: Option<Source>,
pub refs: Vec<Reference>,
pub intra_links: Vec<IntraLink>,
pub body: EntityBody,
}Expand description
One entity as stored in a serialized switchback Group.
Fields§
§name: StringEntity name within its group and category.
category: StringFamily-specific category slug (mirrors EntityCategory::as_str).
title: StringHuman-readable entity title for page headings.
doc: Option<String>Leading documentation prose, when present.
source: Option<Source>Provenance pointer into the switchback source layer, when available.
refs: Vec<Reference>Structural cross-references in the entity body (schema $ref, FQN, etc.).
intra_links: Vec<IntraLink>Prose-level intra-links extracted from doc and fence bodies.
body: EntityBodyCategory-specific payload (mirrors the proto oneof body).
Trait Implementations§
Source§impl Clone for StoredEntity
impl Clone for StoredEntity
Source§fn clone(&self) -> StoredEntity
fn clone(&self) -> StoredEntity
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for StoredEntity
impl Debug for StoredEntity
impl Eq for StoredEntity
Source§impl PartialEq for StoredEntity
impl PartialEq for StoredEntity
Source§fn eq(&self, other: &StoredEntity) -> bool
fn eq(&self, other: &StoredEntity) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for StoredEntity
Auto Trait Implementations§
impl Freeze for StoredEntity
impl RefUnwindSafe for StoredEntity
impl Send for StoredEntity
impl Sync for StoredEntity
impl Unpin for StoredEntity
impl UnsafeUnpin for StoredEntity
impl UnwindSafe for StoredEntity
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