pub struct CreateSkillRequest {
pub name: String,
pub description: String,
pub target_dir: Option<String>,
pub method: CreationMethod,
pub project_context: Option<ProjectProfile>,
pub dry_run: bool,
}Expand description
Request to create a new skill.
Fields§
§name: StringSkill name or topic.
description: StringDetailed description of what the skill should do.
target_dir: Option<String>Target directory for the skill.
method: CreationMethodCreation method preference.
project_context: Option<ProjectProfile>Project context to inform generation.
dry_run: boolWhether to preview without creating files.
Implementations§
Source§impl CreateSkillRequest
impl CreateSkillRequest
Sourcepub fn new(name: impl Into<String>, description: impl Into<String>) -> Self
pub fn new(name: impl Into<String>, description: impl Into<String>) -> Self
Create a new request with defaults.
Sourcepub fn with_target_dir(self, dir: impl Into<String>) -> Self
pub fn with_target_dir(self, dir: impl Into<String>) -> Self
Set the target directory.
Sourcepub fn with_method(self, method: CreationMethod) -> Self
pub fn with_method(self, method: CreationMethod) -> Self
Set the creation method.
Sourcepub fn with_context(self, context: ProjectProfile) -> Self
pub fn with_context(self, context: ProjectProfile) -> Self
Set project context.
Trait Implementations§
Source§impl Clone for CreateSkillRequest
impl Clone for CreateSkillRequest
Source§impl Debug for CreateSkillRequest
impl Debug for CreateSkillRequest
Source§impl<'de> Deserialize<'de> for CreateSkillRequest
impl<'de> Deserialize<'de> for CreateSkillRequest
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
Auto Trait Implementations§
impl Freeze for CreateSkillRequest
impl RefUnwindSafe for CreateSkillRequest
impl Send for CreateSkillRequest
impl Sync for CreateSkillRequest
impl Unpin for CreateSkillRequest
impl UnsafeUnpin for CreateSkillRequest
impl UnwindSafe for CreateSkillRequest
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