Closed maaft closed 5 months ago
Never mind, I got it.
For anyone wondering:
// build
let builder = GeneratedStruct::builder().id("id");
// convert to actual struct. Might error, that's why we must use try_from
let s = GeneratedStruct::try_from(builder)?;
I see that I can call
builder::GeneratedStruct::builder()
to receive a builder that I can use to set different fields.But how can I then actually build it to get
GeneratedStruct
out of it (notbuilder::GeneratedStruct
) ?