pub struct SkillContext {
pub input: Value,
pub definition: SkillDefinition,
pub env: HashMap<String, String>,
pub work_dir: Option<PathBuf>,
}Expand description
Skill 执行上下文
Fields§
§input: Value§definition: SkillDefinition§env: HashMap<String, String>§work_dir: Option<PathBuf>Implementations§
Source§impl SkillContext
impl SkillContext
pub fn new(input: Value, definition: SkillDefinition) -> Self
pub fn with_work_dir(self, dir: impl Into<PathBuf>) -> Self
Trait Implementations§
Source§impl Clone for SkillContext
impl Clone for SkillContext
Source§fn clone(&self) -> SkillContext
fn clone(&self) -> SkillContext
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 moreAuto Trait Implementations§
impl Freeze for SkillContext
impl RefUnwindSafe for SkillContext
impl Send for SkillContext
impl Sync for SkillContext
impl Unpin for SkillContext
impl UnsafeUnpin for SkillContext
impl UnwindSafe for SkillContext
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