MCPcopy Create free account
hub / github.com/bedroombuilds/python2rust / builder

Method builder

2a_builder_pattern/rust/builder/src/main.rs:56–58  ·  view source on GitHub ↗
(id: impl Into<i32>, email: impl Into<String>)

Source from the content-addressed store, hash-verified

54
55impl User {
56 fn builder(id: impl Into<i32>, email: impl Into<String>) -> UserBuilder {
57 UserBuilder::new(id, email)
58 }
59
60 fn complete(&self) -> bool {
61 self.last_name.is_some()

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected