impl Spacebody {
pub fn introduce() -> Spacebody {
Spacebody {
name: "Jerry",
sex: "Male",
location: Location {
city: "Hangzhou",
country: "China",
},
profession: "BackEnd",
emails: vec!["510662916@qq.com", "jerryzyl18@gmail.com"],
blog: "https://blog.yilin.dev",
skills: vec!["Spring/SpringBoot", "Microservices", "Docker"],
languages: vec!["Java", "C/C++", "Rust"],
hobbies: vec!["Reading", "Photography"],
status: vec![Status::BusyForWork, Status::EnjoyHolidays, Status::SeekTrueLove].choose(&mut rand::thread_rng()).unwrap().clone(),
}
}
}
#[derive(Debug)]
pub struct Spacebody {
name: &'static str,
sex: &'static str,
location: Location,
profession: &'static str,
emails: Vec<&'static str>,
blog: &'static str,
skills: Vec<&'static str>,
languages: Vec<&'static str>,
hobbies: Vec<&'static str>,
status: Status,
}
#[derive(Debug, Copy, Clone)]
enum Status {
BusyForWork,
EnjoyHolidays,
SeekTrueLove,
}
#[derive(Debug)]
struct Location {
city: &'static str,
country: &'static str
}
use rand::seq::SliceRandom;
😅
Working
Highlights
Popular repositories Loading
-
-
-
sustcthesis
sustcthesis PublicForked from SUSTC/sustcthesis
graduation thesis latex template for sustcer
-
CS303-Artificial-Intelligence
CS303-Artificial-Intelligence PublicCourse codes for CS303 Artificial Intelligence in SUSTech, fall 2017
-
CS405-Machine-Learning
CS405-Machine-Learning PublicThe source code of CS405 Machine Learning in SUSTech, Fall 2018
-
3 contributions in the last year
Skip to contributions year listDay of Week | October Oct | November Nov | December Dec | January Jan | February Feb | March Mar | April Apr | May May | June Jun | July Jul | August Aug | September Sep | October Oct | ||||||||||||||||||||||||||||||||||||||||
Sunday Sun | |||||||||||||||||||||||||||||||||||||||||||||||||||||
Monday Mon | |||||||||||||||||||||||||||||||||||||||||||||||||||||
Tuesday Tue | |||||||||||||||||||||||||||||||||||||||||||||||||||||
Wednesday Wed | |||||||||||||||||||||||||||||||||||||||||||||||||||||
Thursday Thu | |||||||||||||||||||||||||||||||||||||||||||||||||||||
Friday Fri | |||||||||||||||||||||||||||||||||||||||||||||||||||||
Saturday Sat |
Less
No contributions.
Low contributions.
Medium-low contributions.
Medium-high contributions.
High contributions.
More
Activity overview
Contributed to
Spacebody/Spacebody.github.io
Loading
Contribution activity
October 2025
Spacebody has no activity
yet for this period.