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
.
Auto Trait Implementations§
impl Freeze for Builder
impl !RefUnwindSafe for Builder
impl Send for Builder
impl Sync for Builder
impl Unpin for Builder
impl !UnwindSafe for Builder
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more