made-core 0.7.4

Domain core of MADE: entities, value objects, events, ports. No IO.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use serde::{Deserialize, Serialize};

#[derive(Debug, Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Hash, Serialize, Deserialize)]
#[serde(transparent)]
pub struct ChildPosition(u16);

impl ChildPosition {
    #[must_use]
    pub const fn new(value: u16) -> Self {
        Self(value)
    }
    #[must_use]
    pub const fn get(self) -> u16 {
        self.0
    }
}