Skip to content

Instantly share code, notes, and snippets.

@Mr-Malomz
Created March 10, 2023 11:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Mr-Malomz/6710c3fca7c6cdabcac11333d7c043e2 to your computer and use it in GitHub Desktop.
Save Mr-Malomz/6710c3fca7c6cdabcac11333d7c043e2 to your computer and use it in GitHub Desktop.
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