pub struct InvokedSkill {
pub name: String,
pub dir_path: String,
pub resolved_content: String,
pub invoked_at_secs: u64,
}Expand description
记录一次技能调用的完整信息(用于 auto_compact 后恢复)
Fields§
§name: String技能名称
dir_path: String技能目录路径
resolved_content: String完整的解析后内容(含 $ARGUMENTS 替换、references/scripts 列表)
invoked_at_secs: u64调用时间戳,单位:秒(用于 LRU 排序,最近调用的优先保留)
Trait Implementations§
Source§impl Clone for InvokedSkill
impl Clone for InvokedSkill
Source§fn clone(&self) -> InvokedSkill
fn clone(&self) -> InvokedSkill
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 InvokedSkill
impl Debug for InvokedSkill
Source§impl<'de> Deserialize<'de> for InvokedSkill
impl<'de> Deserialize<'de> for InvokedSkill
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 InvokedSkill
impl PartialEq for InvokedSkill
Source§fn eq(&self, other: &InvokedSkill) -> bool
fn eq(&self, other: &InvokedSkill) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for InvokedSkill
impl Serialize for InvokedSkill
impl StructuralPartialEq for InvokedSkill
Auto Trait Implementations§
impl Freeze for InvokedSkill
impl RefUnwindSafe for InvokedSkill
impl Send for InvokedSkill
impl Sync for InvokedSkill
impl Unpin for InvokedSkill
impl UnsafeUnpin for InvokedSkill
impl UnwindSafe for InvokedSkill
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.