1 2 3 4 5 6 7 8 9 10 11 12 13
use serde::{Deserialize, Serialize};
#[derive(Clone, Debug, Default, PartialEq, Eq, Serialize, Deserialize)]
pub struct Text {
pub hint: String,
pub value: String,
}
impl Text {
pub fn new(text: impl Into<String>, hint: impl Into<String>) -> Self {
Self { hint: hint.into(), value: text.into() }
}
}