pub struct SkillProjectToml {
pub metadata: Option<MetadataSection>,
pub dependencies: Option<DependenciesSection>,
pub tool: Option<ToolSection>,
}Expand description
Root structure for skill-project.toml file Contains both project metadata and dependencies Works in both project-level (skill consumer) and skill-level (skill author) contexts
Fields§
§metadata: Option<MetadataSection>Optional metadata section (required for skill-level, optional for project-level)
dependencies: Option<DependenciesSection>Optional dependencies section (required for project-level, optional for skill-level)
tool: Option<ToolSection>Optional tool configuration (project-level only)
Implementations§
Source§impl SkillProjectToml
impl SkillProjectToml
Sourcepub fn load_from_file(path: &Path) -> Result<Self, ManifestError>
pub fn load_from_file(path: &Path) -> Result<Self, ManifestError>
Load skill-project.toml from file
Sourcepub fn save_to_file(&self, path: &Path) -> Result<(), ManifestError>
pub fn save_to_file(&self, path: &Path) -> Result<(), ManifestError>
Save skill-project.toml to file
Sourcepub fn validate_for_context(
&self,
context: ProjectContext,
) -> Result<(), String>
pub fn validate_for_context( &self, context: ProjectContext, ) -> Result<(), String>
Validate required sections based on context T060: Enhanced error messages with context information
Sourcepub fn to_skill_entries(&self) -> Result<Vec<SkillEntry>, String>
pub fn to_skill_entries(&self) -> Result<Vec<SkillEntry>, String>
Convert SkillProjectToml dependencies to SkillEntry format for installation T027: Helper to convert unified format to legacy format for compatibility
Trait Implementations§
Source§impl Clone for SkillProjectToml
impl Clone for SkillProjectToml
Source§fn clone(&self) -> SkillProjectToml
fn clone(&self) -> SkillProjectToml
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 SkillProjectToml
impl Debug for SkillProjectToml
Source§impl<'de> Deserialize<'de> for SkillProjectToml
impl<'de> Deserialize<'de> for SkillProjectToml
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 SkillProjectToml
impl RefUnwindSafe for SkillProjectToml
impl Send for SkillProjectToml
impl Sync for SkillProjectToml
impl Unpin for SkillProjectToml
impl UnsafeUnpin for SkillProjectToml
impl UnwindSafe for SkillProjectToml
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreCreates a shared type from an unshared type.