struct MyStruct {
    value: i32,
}

impl From<i32> for MyStruct {
    fn from(item: i32) -> Self {
        MyStruct { value: item }
    }
}

fn main() {
    let my_value = MyStruct::from(10);
    println!("Value: {}", my_value.value);
}