#[derive(Debug)]#[allow(dead_code)]struct ColorPoint { //Поля x: i32, y: i32, //В Rust нет свойств color: String}let p = ColorPoint{ x: 1, y: 2, color: "red".to_string()};println!("p is '{:?}'", p);