pub struct AxisDefinition {
pub name: &'static str,
pub category: AxisCategory,
pub description: &'static str,
pub low_anchor: &'static str,
pub high_anchor: &'static str,
pub intent: &'static [&'static str],
pub forbidden_uses: &'static [&'static str],
pub since: &'static str,
pub deprecated: Option<DeprecationInfo>,
}Expand description
Complete definition of a single axis with governance metadata.
This struct defines not just what an axis is, but what it’s for and what it must never be used for. This turns philosophy into enforceable data.
§Example
use attuned_core::axes::{AxisDefinition, AxisCategory};
// Access a canonical axis definition
let axis = attuned_core::axes::COGNITIVE_LOAD;
assert_eq!(axis.name, "cognitive_load");
assert_eq!(axis.category, AxisCategory::Cognitive);
assert!(!axis.forbidden_uses.is_empty());Fields§
§name: &'static strCanonical name (immutable after v1.0).
Must be lowercase alphanumeric with underscores, no leading/trailing underscores.
category: AxisCategorySemantic category for grouping.
description: &'static strHuman-readable description of what this axis measures.
low_anchor: &'static strWhat a low value (near 0.0) represents.
high_anchor: &'static strWhat a high value (near 1.0) represents.
intent: &'static [&'static str]Intended use cases for this axis.
These are the legitimate ways to use this axis value when conditioning LLM behavior.
forbidden_uses: &'static [&'static str]Explicitly forbidden uses of this axis.
These are anti-patterns that violate user agency or trust. Systems using Attuned MUST NOT use axis values for these purposes.
since: &'static strVersion when this axis was introduced.
deprecated: Option<DeprecationInfo>Deprecation information, if this axis is deprecated.
Trait Implementations§
Source§impl Clone for AxisDefinition
impl Clone for AxisDefinition
Source§fn clone(&self) -> AxisDefinition
fn clone(&self) -> AxisDefinition
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for AxisDefinition
impl Debug for AxisDefinition
Auto Trait Implementations§
impl Freeze for AxisDefinition
impl RefUnwindSafe for AxisDefinition
impl Send for AxisDefinition
impl Sync for AxisDefinition
impl Unpin for AxisDefinition
impl UnwindSafe for AxisDefinition
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
clone_to_uninit)