diff options
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 - } -} |
