pub struct Builder { /* private fields */ }Expand description
A builder for ConjureRuntime.
Implementations§
Source§impl Builder
impl Builder
Sourcepub fn encoding(self, encoding: impl Encoding + 'static + Sync + Send) -> Self
pub fn encoding(self, encoding: impl Encoding + 'static + Sync + Send) -> Self
Registers an encoding for serializable request and response bodies.
The runtime defaults to using JsonEncoding and SmileEncoding if none are explicitly registered.
Sourcepub fn build(self) -> ConjureRuntime
pub fn build(self) -> ConjureRuntime
Builds the ConjureRuntime.