pub struct CognitiveInterface {
pub format_version: u32,
pub module: String,
pub epistemic_floor: EpistemicFloor,
pub content_hash: String,
pub interface_hash: String,
pub exports: BTreeMap<String, ExportSignature>,
}Expand description
The .axi — a module’s compiled cognitive interface.
Fields§
§format_version: u32§module: StringDotted module path (axon.security).
epistemic_floor: EpistemicFloor§content_hash: StringSHA-256 of the module’s source bytes.
interface_hash: StringSHA-256 of this interface’s canonical JSON (this field excluded).
exports: BTreeMap<String, ExportSignature>Name → signature, deterministically ordered.
Implementations§
Source§impl CognitiveInterface
impl CognitiveInterface
Sourcepub fn to_axi_json(&self) -> String
pub fn to_axi_json(&self) -> String
Serialize to canonical .axi JSON (pretty, stable field order —
the byte shape the interface hash is computed over and the cache
persists).
pub fn from_axi_json(s: &str) -> Option<CognitiveInterface>
Trait Implementations§
Source§impl Clone for CognitiveInterface
impl Clone for CognitiveInterface
Source§fn clone(&self) -> CognitiveInterface
fn clone(&self) -> CognitiveInterface
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 CognitiveInterface
impl Debug for CognitiveInterface
Source§impl<'de> Deserialize<'de> for CognitiveInterface
impl<'de> Deserialize<'de> for CognitiveInterface
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<CognitiveInterface, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<CognitiveInterface, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for CognitiveInterface
impl PartialEq for CognitiveInterface
Source§impl Serialize for CognitiveInterface
impl Serialize for CognitiveInterface
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for CognitiveInterface
Auto Trait Implementations§
impl Freeze for CognitiveInterface
impl RefUnwindSafe for CognitiveInterface
impl Send for CognitiveInterface
impl Sync for CognitiveInterface
impl Unpin for CognitiveInterface
impl UnsafeUnpin for CognitiveInterface
impl UnwindSafe for CognitiveInterface
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