struct User { | |
username: String, | |
email: String, | |
sign_in_count: u64, | |
active: bool, | |
} | |
fn main() { | |
// ANCHOR: here | |
let mut user1 = User { | |
email: String::from("someone@example.com"), | |
username: String::from("someusername123"), | |
active: true, | |
sign_in_count: 1, | |
}; | |
user1.email = String::from("anotheremail@example.com"); | |
// ANCHOR_END: here | |
} |