MCPcopy Create free account
hub / github.com/derekbanas/Rust-Tutorial / Customer

Class Customer

main.rs:655–659  ·  view source on GitHub ↗

----- STRUCTS ----- A struct is a custom data type that stores multiple types of data

Source from the content-addressed store, hash-verified

653 // A struct is a custom data type that stores multiple
654 // types of data
655 struct Customer{
656 name: String,
657 address: String,
658 balance: f32,
659 }
660
661 // Create struct
662 let mut bob = Customer {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected