// π Hey there, I'm Highlander Paiva! π§π·
struct Developer {
name: &'static str,
role: &'static str,
country: &'static str,
current_job: &'static str,
goal: &'static str,
linkedin: &'static str,
fun_fact: &'static str,
}
impl Developer {
fn new() -> Self {
Developer {
name: "Highlander Paiva",
role: "Backend Developer",
country: "Brazil",
current_job: "Software Engineer SSr at Mercado Livre",
goal: "Become a versatile and impactful Software Architect",
fun_fact: "My name is based on the movie 'Highlander (1986)'. There can be only one! βοΈ",
}
}
fn introduce(&self) {
println!("π Hey there, I'm {}! π§π·", self.name);
println!("π {} from {}, currently working as {}.", self.role, self.country, self.current_job);
println!("π― Goal: {}", self.goal);
println!("π¬ Fun fact: {}", self.fun_fact);
}
fn advise(&self) {
println!("π Keep exploring, learning, and having fun! π");
}
}
fn main() {
let highlander = Developer::new();
highlander.introduce();
highlander.advise();
}
- π LinkedIn: Highlander Paiva