Skip to content

Commit 3e11ae3

Browse files
authored
fix(common): add missing schema, v0.40.1 (#1661)
1 parent 0c57746 commit 3e11ae3

File tree

3 files changed

+9
-2
lines changed

3 files changed

+9
-2
lines changed

Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

common/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "shuttle-common"
3-
version = "0.40.0"
3+
version = "0.40.1"
44
edition.workspace = true
55
license.workspace = true
66
repository.workspace = true

common/src/templates.rs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,13 @@
1+
use std::collections::HashMap;
2+
13
use serde::{Deserialize, Serialize};
24

35
/// Schema used in `examples/templates.toml` and services that parses it
6+
#[derive(Debug, Serialize, Deserialize)]
7+
pub struct TemplatesSchema {
8+
templates: HashMap<String, TemplateDefinition>,
9+
}
10+
411
#[derive(Debug, Default, Serialize, Deserialize)]
512
pub struct TemplateDefinition {
613
/// Title of the template

0 commit comments

Comments
 (0)