diff options
author | Cara Salter <cara@devcara.com> | 2022-06-10 09:31:46 -0400 |
---|---|---|
committer | Cara Salter <cara@devcara.com> | 2022-06-10 09:32:43 -0400 |
commit | eec3c3b7736f7ec54b25712761d00caaa3f78619 (patch) | |
tree | 7fe67ac045f6daf8c575be15d81cd906af6f62f0 /src/star.rs | |
parent | f73eb90d830df1a0881447d918985e315aed6fb7 (diff) | |
download | solarlib-eec3c3b7736f7ec54b25712761d00caaa3f78619.tar.gz solarlib-eec3c3b7736f7ec54b25712761d00caaa3f78619.zip |
star: Add struct for new Planet HTTP requests1.5.0
Diffstat (limited to 'src/star.rs')
-rw-r--r-- | src/star.rs | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/star.rs b/src/star.rs index 53c9124..a9f3bfa 100644 --- a/src/star.rs +++ b/src/star.rs @@ -44,6 +44,16 @@ pub struct Star { con: Option<Connect>, } +/// The proper JSON request to make to a solard server to introduce a new planet +#[derive(Debug, Serialize, Deserialize)] +pub struct NewPlanet { + pub name: String, + pub max_mem: Memory, + pub max_cpus: CpuCount, + pub disk_size_mb: u64, + pub ship: Ship, +} + impl Star { /// Creates a new Planet based on a libvirtd connect URL /// |