pub struct Annotation {
pub kind: AnnotationKind,
pub name: Option<String>,
pub heading: Option<String>,
pub fields: BTreeMap<String, AnnotationValue>,
pub source: SourceLocation,
pub source_kind: IntentSourceKind,
pub conditional: bool,
pub raw_text: String,
}Expand description
A typed annotation record produced by g8-extractor.
This is a transient extractor output, never stored directly.
Fields§
§kind: AnnotationKind§name: Option<String>Present for Capability and Plan kinds (from the name field).
heading: Option<String>Present for Intent kind (section heading).
fields: BTreeMap<String, AnnotationValue>§source: SourceLocation§source_kind: IntentSourceKind§conditional: boolSet when extractor flagged dev_only=true, cfg_attr, or tests/ dir.
raw_text: StringThe raw annotation text (stripped of // prefixes, whitespace-normalised).
Trait Implementations§
Source§impl Clone for Annotation
impl Clone for Annotation
Source§impl Debug for Annotation
impl Debug for Annotation
Source§impl<'de> Deserialize<'de> for Annotation
impl<'de> Deserialize<'de> for Annotation
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 Annotation
impl RefUnwindSafe for Annotation
impl Send for Annotation
impl Sync for Annotation
impl Unpin for Annotation
impl UnsafeUnpin for Annotation
impl UnwindSafe for Annotation
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