pub struct ContextSkill {
pub name: String,
pub source: String,
pub plugin_name: Option<String>,
pub tokens: u64,
}Expand description
A skill’s token contribution, in ContextUsage::skills.
Fields§
§name: String§source: StringRaw source identifier, e.g. "userSettings", "plugin".
plugin_name: Option<String>§tokens: u64Trait Implementations§
Source§impl Clone for ContextSkill
impl Clone for ContextSkill
Source§fn clone(&self) -> ContextSkill
fn clone(&self) -> ContextSkill
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 ContextSkill
impl Debug for ContextSkill
Source§impl<'de> Deserialize<'de> for ContextSkill
impl<'de> Deserialize<'de> for ContextSkill
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 ContextSkill
impl PartialEq for ContextSkill
Source§impl Serialize for ContextSkill
impl Serialize for ContextSkill
impl StructuralPartialEq for ContextSkill
Auto Trait Implementations§
impl Freeze for ContextSkill
impl RefUnwindSafe for ContextSkill
impl Send for ContextSkill
impl Sync for ContextSkill
impl Unpin for ContextSkill
impl UnsafeUnpin for ContextSkill
impl UnwindSafe for ContextSkill
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