aboutsummaryrefslogtreecommitdiff
path: root/development/tools/cargo-workspace2/src/models/publish.rs
diff options
context:
space:
mode:
Diffstat (limited to 'development/tools/cargo-workspace2/src/models/publish.rs')
-rw-r--r--development/tools/cargo-workspace2/src/models/publish.rs20
1 files changed, 20 insertions, 0 deletions
diff --git a/development/tools/cargo-workspace2/src/models/publish.rs b/development/tools/cargo-workspace2/src/models/publish.rs
new file mode 100644
index 000000000000..11984017d49f
--- /dev/null
+++ b/development/tools/cargo-workspace2/src/models/publish.rs
@@ -0,0 +1,20 @@
+use crate::models::{Crate, CrateId};
+
+/// A publishing mutation executed on the graph
+pub struct PubMutation {
+ _crate: CrateId,
+ new_version: String,
+}
+
+impl PubMutation {
+ /// Createa new motation from a crate a version string
+ pub fn new(c: &Crate, new_version: String) -> Self {
+ Self {
+ _crate: c.id,
+ new_version,
+ }
+ }
+}
+
+/// A collection of mutations performed in a batch
+pub struct MutationSet {}