#[derive(Debug)]
struct SomeDude<'a> {
name: &'a str,
current_role: &'a str,
hobbies: Vec<&'a str>,
}
impl Default for SomeDude<'_> {
fn default() -> Self {
Self {
name: "Fitzypop",
current_role: "Software Engineer",
hobbies: vec![
"coding",
"music and gear",
"craft beer and microbrews",
"weightlifting",
],
}
}
}
fn main() {
println!("Sup, nerds. 🤙 Welcome to my profile!");
let me = SomeDude::default();
println!("{:?}", me);
}
fitzypop Goto Github PK
Name: Joseph Fitzgibbons
Type: User
Company: SpyCloud, Inc.
Location: Rio Rancho, NM