Created
March 10, 2023 11:00
-
-
Save Mr-Malomz/6710c3fca7c6cdabcac11333d7c043e2 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
use serde::Deserialize; | |
#[derive(Clone, Deserialize, PartialEq)] | |
pub struct RootComposition { | |
pub composition: Composition, | |
} | |
#[derive(Clone, Deserialize, PartialEq)] | |
pub struct Composition { | |
pub slots: Slots, | |
} | |
#[derive(Clone, Deserialize, PartialEq)] | |
pub struct Slots { | |
pub flowers: Vec<Flower>, | |
} | |
#[derive(Clone, Deserialize, PartialEq)] | |
pub struct Flower { | |
pub parameters: Parameters, | |
} | |
#[derive(Clone, Deserialize, PartialEq)] | |
pub struct Parameters { | |
pub img: Img, | |
pub name: Name, | |
} | |
#[derive(Clone, Deserialize, PartialEq)] | |
pub struct Img { | |
pub value: Vec<Value>, | |
} | |
#[derive(Clone, Deserialize, PartialEq)] | |
pub struct Value { | |
pub alt: String, | |
pub url: String, | |
} | |
#[derive(Clone, Deserialize, PartialEq)] | |
pub struct Name { | |
pub value: String, | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment