1 2 3 4 5 6 7 8 9 10
#[derive(Clone)] pub struct MessageState { pub value: String, } impl From<String> for MessageState { fn from(value: String) -> Self { Self { value } } }