Loading RustViz Engine...
Prevent .build() from compiling unless all mandatory fields are supplied via phantom states.
This problem is currently in blueprint template mode. Once the concept foundation is finalized, live in-browser WebAssembly compilation and test assertion runners will be enabled here.
use std::marker::PhantomData;
pub struct Complete;
pub struct Incomplete;
pub struct HttpRequestBuilder<UrlState, BodyState> {
url: Option<String>,
body: Option<String>,
_marker: PhantomData<(UrlState, BodyState)>,
}