MCPcopy Create free account
hub / github.com/PacktPublishing/Rust-for-Blockchain-Application-Development / Employee

Class Employee

chapter 2/code.rs:202–207  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

200// Structs
201
202struct Employee {
203 name: String,
204 assigned_id: u64,
205 email: String,
206 active: bool,
207}
208
209fn main () {
210 let emp1 = Employee {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected