aboutsummaryrefslogtreecommitdiff
path: root/src/star.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/star.rs')
-rw-r--r--src/star.rs10
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
///