Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/PacktPublishing/Rust-for-Blockchain-Application-Development
/ new
Method
new
chapter 4/node.rs:10–12 ·
view source on GitHub ↗
(addr: String)
Source
from the content-addressed store, hash-verified
8
9
impl Node {
10
fn new(addr: String) -> Node {
11
Node { addr }
12
}
13
14
pub fn get_addr(&self) -> String {
15
self.addr.clone()
Callers
nothing calls this directly
Calls
no outgoing calls
Tested by
no test coverage detected