clm-kernel 0.0.24

Cubical Logic Model (CLM) sovereign execution engine, CPN-VM, and Cordis spatiotemporal substrate
Documentation
// @generated by tools/types/sync_membrane_descriptor.py from types/lattice/membrane_descriptor.json
// DO NOT EDIT MANUALLY — run `python3 tools/types/sync_membrane_descriptor.py --write`

#![allow(dead_code)]

/// Closed enumeration of Rust session membrane action names (INV-632).
#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)]
pub enum SessionActionType {
    UserPrompt,
    SelectCard,
}

impl SessionActionType {
    /// The string this variant projects.
    pub const fn as_str(self) -> &'static str {
        match self {
            Self::UserPrompt => "user_prompt",
            Self::SelectCard => "select_card",
        }
    }
}

/// Session action name 'user_prompt'.
pub const SESSION_ACTION_USER_PROMPT: &str = "user_prompt";

/// Session action name 'select_card'.
pub const SESSION_ACTION_SELECT_CARD: &str = "select_card";

/// Ordered list of all session action names.
pub const SESSION_ACTION_TYPES: &[&str] = &[SESSION_ACTION_USER_PROMPT, SESSION_ACTION_SELECT_CARD];


/// Closed enumeration of Rust session audit event names (INV-632).
#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)]
pub enum SessionEventType {
    PromptReceived,
    CardSelected,
}

impl SessionEventType {
    /// The string this variant projects.
    pub const fn as_str(self) -> &'static str {
        match self {
            Self::PromptReceived => "prompt_received",
            Self::CardSelected => "card_selected",
        }
    }
}

/// Session audit event name 'prompt_received'.
pub const SESSION_EVENT_PROMPT_RECEIVED: &str = "prompt_received";

/// Session audit event name 'card_selected'.
pub const SESSION_EVENT_CARD_SELECTED: &str = "card_selected";

/// Ordered list of all session audit event names.
pub const SESSION_EVENT_TYPES: &[&str] = &[SESSION_EVENT_PROMPT_RECEIVED, SESSION_EVENT_CARD_SELECTED];