diff options
| author | Benedikt Peetz <benedikt.peetz@b-peetz.de> | 2026-03-19 02:43:20 +0100 |
|---|---|---|
| committer | Benedikt Peetz <benedikt.peetz@b-peetz.de> | 2026-03-19 02:43:20 +0100 |
| commit | 9514d8e13730b99d9a5ead588561adeec070848b (patch) | |
| tree | e535de2fb2f41bf164281eb1f91e8e231cc8df3b /crates/rocie-client/src/models/content_one_of.rs | |
| parent | feat(rocie-server): Provide default units (and other changes) (diff) | |
| download | server-9514d8e13730b99d9a5ead588561adeec070848b.zip | |
chore(rocie-client): Re-generate
Diffstat (limited to 'crates/rocie-client/src/models/content_one_of.rs')
| -rw-r--r-- | crates/rocie-client/src/models/content_one_of.rs | 23 |
1 files changed, 4 insertions, 19 deletions
diff --git a/crates/rocie-client/src/models/content_one_of.rs b/crates/rocie-client/src/models/content_one_of.rs index 1c82c61..02d5beb 100644 --- a/crates/rocie-client/src/models/content_one_of.rs +++ b/crates/rocie-client/src/models/content_one_of.rs @@ -14,32 +14,17 @@ use serde::{Deserialize, Serialize}; /// ContentOneOf : A step #[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] pub struct ContentOneOf { - #[serde(rename = "type")] - pub r#type: Type, /// A step - #[serde(rename = "value")] - pub value: models::Step, + #[serde(rename = "Step")] + pub step: models::Step, } impl ContentOneOf { /// A step - pub fn new(r#type: Type, value: models::Step) -> ContentOneOf { + pub fn new(step: models::Step) -> ContentOneOf { ContentOneOf { - r#type, - value, + step, } } } -/// -#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] -pub enum Type { - #[serde(rename = "step")] - Step, -} - -impl Default for Type { - fn default() -> Type { - Self::Step - } -} |
