pub struct ProjectionHint {
pub action: Option<String>,
pub item_type: Option<String>,
pub tags: Vec<String>,
pub retract_tags: Vec<String>,
pub summary: Option<Summary>,
pub annotations: Vec<Annotation>,
}Expand description
Product-facing projection metadata supplied by rules, not inferred by core.
Fields§
§action: Option<String>§item_type: Option<String>Tags this hint removes from the accumulated projection. Tag overlay is
union-only, so an annotator that supersedes an earlier framing (e.g. a
CFM-71 container reshape replacing a pair-time binoc.move) needs a way to
drop the now-stale tag — otherwise the IR carries contradictory tags
(inert in rendering, but incoherent in JSON). A retraction is honored
whenever tags are merged: the named tags are removed from the result and
can never be re-introduced by the same hint.
summary: Option<Summary>§annotations: Vec<Annotation>Implementations§
Source§impl ProjectionHint
impl ProjectionHint
pub fn action(self, action: impl Into<String>) -> Self
pub fn item_type(self, item_type: impl Into<String>) -> Self
pub fn tag(self, tag: impl Into<String>) -> Self
Sourcepub fn retract_tag(self, tag: impl Into<String>) -> Self
pub fn retract_tag(self, tag: impl Into<String>) -> Self
Declare that this hint retracts tag from the accumulated projection —
used to drop a superseded framing (e.g. a reshape annotator dropping the
pair-time binoc.move). See ProjectionHint::retract_tags.
pub fn summary(self, summary: impl Into<Summary>) -> Self
pub fn annotate( self, package: impl Into<String>, key: impl Into<String>, value: Value, ) -> Self
pub fn merge_from(&mut self, other: &ProjectionHint)
Sourcepub fn overlay_from(&mut self, other: &ProjectionHint)
pub fn overlay_from(&mut self, other: &ProjectionHint)
Overlay other onto self: every field other sets wins (unlike
merge_from, which only fills gaps). Tags union.
Trait Implementations§
Source§impl Clone for ProjectionHint
impl Clone for ProjectionHint
Source§fn clone(&self) -> ProjectionHint
fn clone(&self) -> ProjectionHint
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ProjectionHint
impl Debug for ProjectionHint
Source§impl Default for ProjectionHint
impl Default for ProjectionHint
Source§fn default() -> ProjectionHint
fn default() -> ProjectionHint
Source§impl<'de> Deserialize<'de> for ProjectionHint
impl<'de> Deserialize<'de> for ProjectionHint
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>,
Source§impl PartialEq for ProjectionHint
impl PartialEq for ProjectionHint
Source§fn eq(&self, other: &ProjectionHint) -> bool
fn eq(&self, other: &ProjectionHint) -> bool
self and other values to be equal, and is used by ==.