pub struct GuidanceEntry {
pub key: SmolStr,
pub when: Option<String>,
pub caution: Option<String>,
pub links: Vec<GuidanceLink>,
}Expand description
One structured agent-guidance entry declared in a guidance! section
(§4.2). Keys and link names resolve against the declaring pack’s own
type/kind tables at pack_def() build time — an entry naming an
unknown type or kind fails pack load, exactly as type_triples! does.
Fields§
§key: SmolStrThe memory type or kind display name this entry advises on.
when: Option<String>When the guidance applies (<=160 chars; names nothing checkable).
caution: Option<String>A caution (<=160 chars; the only other text slot).
links: Vec<GuidanceLink>Declared links: (kind, direction, target-or-source type) triples
the producer should mint. => is outgoing (key —Kind→ target);
<= is incoming (source —Kind→ key).
Implementations§
Source§impl GuidanceEntry
impl GuidanceEntry
Sourcepub const MAX_TEXT_CHARS: usize = 160
pub const MAX_TEXT_CHARS: usize = 160
Human-text budget per §4.2: the escape hatch cannot quietly become a prose blob.
Trait Implementations§
Source§impl Clone for GuidanceEntry
impl Clone for GuidanceEntry
Source§fn clone(&self) -> GuidanceEntry
fn clone(&self) -> GuidanceEntry
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 GuidanceEntry
impl Debug for GuidanceEntry
Source§impl<'de> Deserialize<'de> for GuidanceEntry
impl<'de> Deserialize<'de> for GuidanceEntry
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
Source§impl PartialEq for GuidanceEntry
impl PartialEq for GuidanceEntry
Source§impl Serialize for GuidanceEntry
impl Serialize for GuidanceEntry
impl StructuralPartialEq for GuidanceEntry
Auto Trait Implementations§
impl Freeze for GuidanceEntry
impl RefUnwindSafe for GuidanceEntry
impl Send for GuidanceEntry
impl Sync for GuidanceEntry
impl Unpin for GuidanceEntry
impl UnsafeUnpin for GuidanceEntry
impl UnwindSafe for GuidanceEntry
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