#[derive(Debug, Clone)] enum IP{ V4(String), V6(String), } fn main(){ let p1 = IP::V4(String::from("aaaa")); let p2 = IP::V6(String::from("bbbb")); println!("{:?} ",p1); println!("{:?} ",p2); }