diff options
| author | Benedikt Peetz <benedikt.peetz@b-peetz.de> | 2026-02-15 22:25:39 +0100 |
|---|---|---|
| committer | Benedikt Peetz <benedikt.peetz@b-peetz.de> | 2026-02-15 22:25:39 +0100 |
| commit | b467f7202f5c0c3970e39ea396a0cec0fd6a36ee (patch) | |
| tree | aa567f84f0c2891d03de5b6414507c2d9a5f4754 /crates/rocie-client/src/models/recipe_stub.rs | |
| parent | feat(treewide): Add recipes and user handling (diff) | |
| download | server-b467f7202f5c0c3970e39ea396a0cec0fd6a36ee.zip | |
chore(rocie-client): Re-generate the client api
Diffstat (limited to 'crates/rocie-client/src/models/recipe_stub.rs')
| -rw-r--r-- | crates/rocie-client/src/models/recipe_stub.rs | 18 |
1 files changed, 13 insertions, 5 deletions
diff --git a/crates/rocie-client/src/models/recipe_stub.rs b/crates/rocie-client/src/models/recipe_stub.rs index 205faa6..803c8dd 100644 --- a/crates/rocie-client/src/models/recipe_stub.rs +++ b/crates/rocie-client/src/models/recipe_stub.rs @@ -16,13 +16,21 @@ pub struct RecipeStub { /// The content of this recipe, in cooklang format #[serde(rename = "content")] pub content: String, - /// The path the recipe should have - #[serde(rename = "path")] - pub path: String, + /// The globally unique name of this recipe + #[serde(rename = "name")] + pub name: String, + /// The optional parent of this recipe. + #[serde(rename = "parent", skip_serializing_if = "Option::is_none")] + pub parent: Option<models::RecipeParentId>, } impl RecipeStub { - pub fn new(content: String, path: String) -> RecipeStub { - RecipeStub { content, path } + pub fn new(content: String, name: String) -> RecipeStub { + RecipeStub { + content, + name, + parent: None, + } } } + |
