pub struct Builder { /* private fields */ }
Expand description
Builder for RestClient
Implementations§
source§impl Builder
impl Builder
sourcepub fn send_null_body(self, value: bool) -> Self
pub fn send_null_body(self, value: bool) -> Self
Send null body in POST/PUT
Default is yes
pub fn with_client(self, client: HyperClient) -> Self
sourcepub fn build(self, url: &str) -> Result<RestClient, Error>
pub fn build(self, url: &str) -> Result<RestClient, Error>
Create RestClient
with the configuration in this builder
sourcepub fn blocking(self, url: &str) -> Result<RestClient, Error>
pub fn blocking(self, url: &str) -> Result<RestClient, Error>
Create blocking::RestClient
with the configuration in
this builder
Trait Implementations§
Auto Trait Implementations§
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