#[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 / clickpy Goto Github PK
View Code? Open in Web Editor NEWAutomated mouse clicker script
License: MIT License