mirror of
https://github.com/KaiserY/trpl-zh-cn
synced 2025-04-30 18:28:15 +08:00
18 lines
331 B
Rust
18 lines
331 B
Rust
|
struct User {
|
||
|
active: bool,
|
||
|
username: String,
|
||
|
email: String,
|
||
|
sign_in_count: u64,
|
||
|
}
|
||
|
|
||
|
// ANCHOR: here
|
||
|
fn main() {
|
||
|
let user1 = User {
|
||
|
email: String::from("someone@example.com"),
|
||
|
username: String::from("someusername123"),
|
||
|
active: true,
|
||
|
sign_in_count: 1,
|
||
|
};
|
||
|
}
|
||
|
// ANCHOR_END: here
|