knot0-types 2.0.34

Rust types generated from Knot0 JSON Schemas
Documentation
# knot0-types

Rust types generated from Knot0 JSON Schemas.

## Installation

Add this to your `Cargo.toml`:

```toml
[dependencies]
knot0-types = "2.0"
```

## Usage

```rust
use knot0_types::{Component, Workflow, Application};
use serde_json;

// Deserialize a component from JSON
let component_json = r#"
{
  "apiVersion": "knot0.com/v2",
  "kind": "Component",
  "metadata": {
    "name": "my-component"
  },
  "spec": {
    "runtime": "python",
    "code": "print('Hello, World!')"
  }
}
"#;

let component: Component = serde_json::from_str(component_json)?;
```

## Features

- `json` (default): JSON serialization/deserialization support
- `yaml`: YAML serialization/deserialization support

## License

MIT