13 lines
213 B
Rust
13 lines
213 B
Rust
use serde::{Deserialize, Serialize};
|
|
|
|
#[derive(Debug, Clone, Serialize, Deserialize)]
|
|
pub struct Id {
|
|
value: String,
|
|
}
|
|
|
|
impl Id {
|
|
pub fn from_string(value: String) -> Self {
|
|
Self { value }
|
|
}
|
|
}
|