pub struct SkillState {
pub active: GSet<String>,
}Expand description
Persisted skill state — only the CRDT active set.
Material content (instructions, references, scripts, assets) is delivered
inline via ToolResult / with_user_message and never stored in state,
avoiding parallel-branch conflicts on HashMap writes.
Fields§
§active: GSet<String>Activated skill IDs (grow-only set for conflict-free parallel merges).
Trait Implementations§
Source§impl Clone for SkillState
impl Clone for SkillState
Source§fn clone(&self) -> SkillState
fn clone(&self) -> SkillState
Returns a duplicate of the value. Read more
1.0.0 · 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 SkillState
impl Debug for SkillState
Source§impl Default for SkillState
impl Default for SkillState
Source§fn default() -> SkillState
fn default() -> SkillState
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for SkillState
impl<'de> Deserialize<'de> for SkillState
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<SkillState, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<SkillState, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for SkillState
impl Serialize for SkillState
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
Source§impl State for SkillState
impl State for SkillState
Source§fn state_ref<'a>(
doc: &'a DocCell,
base: Path,
sink: PatchSink<'a>,
) -> <SkillState as State>::Ref<'a>
fn state_ref<'a>( doc: &'a DocCell, base: Path, sink: PatchSink<'a>, ) -> <SkillState as State>::Ref<'a>
Create a state reference at the specified path. Read more
Source§fn from_value(value: &Value) -> Result<SkillState, TireaError>
fn from_value(value: &Value) -> Result<SkillState, TireaError>
Deserialize this type from a JSON value.
Source§fn register_lattice(registry: &mut LatticeRegistry)
fn register_lattice(registry: &mut LatticeRegistry)
Register lattice fields into the given registry. Read more
Source§fn lattice_keys() -> &'static [&'static str]
fn lattice_keys() -> &'static [&'static str]
Return the JSON keys of fields annotated with
#[tirea(lattice)]. Read moreSource§fn diff_ops(
old: &SkillState,
new: &SkillState,
base_path: &Path,
) -> Result<Vec<Op>, TireaError>
fn diff_ops( old: &SkillState, new: &SkillState, base_path: &Path, ) -> Result<Vec<Op>, TireaError>
Compare two instances and emit minimal ops for changed fields. Read more
Source§impl StateSpec for SkillState
impl StateSpec for SkillState
Source§const SCOPE: StateScope = ::tirea_state::StateScope::Thread
const SCOPE: StateScope = ::tirea_state::StateScope::Thread
Lifecycle scope of this state type. Read more
Source§type Action = SkillStateAction
type Action = SkillStateAction
The action type accepted by this state.
Auto Trait Implementations§
impl Freeze for SkillState
impl RefUnwindSafe for SkillState
impl Send for SkillState
impl Sync for SkillState
impl Unpin for SkillState
impl UnwindSafe for SkillState
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