pub struct ConjureRuntime { /* private fields */ }Expand description
A type providing client logic that is configured at runtime.
Implementations§
Source§impl ConjureRuntime
impl ConjureRuntime
Sourcepub fn accept(&self) -> HeaderValue
pub fn accept(&self) -> HeaderValue
Returns an Accept header value based on the configured accept encodings.
Sourcepub fn request_body_encoding(&self) -> &(dyn Encoding + Sync + Send)
pub fn request_body_encoding(&self) -> &(dyn Encoding + Sync + Send)
Returns the configured request body Encoding.
Sourcepub fn response_body_encoding(
&self,
headers: &HeaderMap,
) -> Result<&(dyn Encoding + Sync + Send), Error>
pub fn response_body_encoding( &self, headers: &HeaderMap, ) -> Result<&(dyn Encoding + Sync + Send), Error>
Returns the appropriate Encoding to deserialize the response body.
The implementation currently compares the response’s Content-Type header against Encoding::content_type,
ignoring parameters.
Trait Implementations§
Source§impl Debug for ConjureRuntime
impl Debug for ConjureRuntime
Auto Trait Implementations§
impl !Freeze for ConjureRuntime
impl !RefUnwindSafe for ConjureRuntime
impl Send for ConjureRuntime
impl Sync for ConjureRuntime
impl Unpin for ConjureRuntime
impl !UnwindSafe for ConjureRuntime
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