Most of the refactor. Need to switch machines.
This commit is contained in:
25
crates/pom/src/lib.rs
Normal file
25
crates/pom/src/lib.rs
Normal file
@@ -0,0 +1,25 @@
|
||||
pub mod error;
|
||||
pub mod xml;
|
||||
|
||||
pub use error::{Error, Result};
|
||||
|
||||
use serde::{Deserialize, Serialize};
|
||||
|
||||
#[derive(Debug, Clone, Deserialize, Serialize, PartialEq, Eq)]
|
||||
pub struct Pom {
|
||||
model_version: semver::Version,
|
||||
}
|
||||
|
||||
impl Pom {
|
||||
pub fn is_empty(&self) -> bool {
|
||||
self == &Self::default()
|
||||
}
|
||||
}
|
||||
|
||||
impl Default for Pom {
|
||||
fn default() -> Self {
|
||||
Self {
|
||||
model_version: semver::Version::new(4, 0, 0),
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user