My personal project and infrastructure archive
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
nomicon/development/tools/cargo-workspace2/src/models/publish.rs

20 lines
457 B

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 {}