pub struct SkillUpdate {
pub name: Option<String>,
pub description: Option<String>,
pub category: Option<String>,
pub tags: Option<Vec<String>>,
pub prompt: Option<String>,
pub tool_refs: Option<Vec<String>>,
pub workflow_refs: Option<Vec<String>>,
pub visibility: Option<SkillVisibility>,
pub version: Option<String>,
}Expand description
Update fields for skill modification.
This struct is used to specify which fields of a skill should be updated. All fields are optional - only provided fields will be changed.
Note: This is currently not used as skills are read-only, but is kept for future API compatibility and documentation purposes.
§Example
ⓘ
let update = SkillUpdate::new()
.with_name("New Name")
.with_description("Updated description")
.with_tags(vec!["new-tag".to_string()]);Fields§
§name: Option<String>New name for the skill.
description: Option<String>New description for the skill.
category: Option<String>New category for the skill.
New list of tags for the skill.
prompt: Option<String>New prompt template for the skill.
tool_refs: Option<Vec<String>>New list of tool references for the skill.
workflow_refs: Option<Vec<String>>New list of workflow references for the skill.
visibility: Option<SkillVisibility>New visibility setting for the skill.
version: Option<String>New version string for the skill.
Implementations§
Source§impl SkillUpdate
impl SkillUpdate
Sourcepub fn new() -> Self
pub fn new() -> Self
Create a new empty update struct.
All fields will be None, indicating no changes.
Sourcepub fn with_description(self, description: impl Into<String>) -> Self
pub fn with_description(self, description: impl Into<String>) -> Self
Sourcepub fn with_category(self, category: impl Into<String>) -> Self
pub fn with_category(self, category: impl Into<String>) -> Self
Sourcepub fn with_prompt(self, prompt: impl Into<String>) -> Self
pub fn with_prompt(self, prompt: impl Into<String>) -> Self
Sourcepub fn with_tool_refs(self, tool_refs: Vec<String>) -> Self
pub fn with_tool_refs(self, tool_refs: Vec<String>) -> Self
Set the tool references field.
§Arguments
tool_refs- The new list of tool references for the skill.
Sourcepub fn with_workflow_refs(self, workflow_refs: Vec<String>) -> Self
pub fn with_workflow_refs(self, workflow_refs: Vec<String>) -> Self
Set the workflow references field.
§Arguments
workflow_refs- The new list of workflow references for the skill.
Sourcepub fn with_visibility(self, visibility: SkillVisibility) -> Self
pub fn with_visibility(self, visibility: SkillVisibility) -> Self
Sourcepub fn with_version(self, version: impl Into<String>) -> Self
pub fn with_version(self, version: impl Into<String>) -> Self
Trait Implementations§
Source§impl Clone for SkillUpdate
impl Clone for SkillUpdate
Source§fn clone(&self) -> SkillUpdate
fn clone(&self) -> SkillUpdate
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 SkillUpdate
impl Debug for SkillUpdate
Source§impl Default for SkillUpdate
impl Default for SkillUpdate
Source§fn default() -> SkillUpdate
fn default() -> SkillUpdate
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for SkillUpdate
impl RefUnwindSafe for SkillUpdate
impl Send for SkillUpdate
impl Sync for SkillUpdate
impl Unpin for SkillUpdate
impl UnsafeUnpin for SkillUpdate
impl UnwindSafe for SkillUpdate
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