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

Enum Web3

chapter 2/code.rs:185–190  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

183// Match Control Flow
184
185enum Web3{
186 Defi,
187 NFT,
188 Game,
189 Metaverse
190}
191fn number_assign(web3: Web3) -> u8 {
192 match web3 {
193 Web3::Defi => 1,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected