pub struct RetrofitBuilder { /* private fields */ }
Expand description
Retrofit builder
Implementations§
Source§impl RetrofitBuilder
impl RetrofitBuilder
pub fn new() -> Self
Sourcepub fn add_header(
self,
key: impl Into<String>,
value: impl Into<String>,
) -> Self
pub fn add_header( self, key: impl Into<String>, value: impl Into<String>, ) -> Self
Add a default header
Sourcepub fn add_interceptor<I: Interceptor + 'static>(self, interceptor: I) -> Self
pub fn add_interceptor<I: Interceptor + 'static>(self, interceptor: I) -> Self
Add an interceptor
Trait Implementations§
Auto Trait Implementations§
impl Freeze for RetrofitBuilder
impl !RefUnwindSafe for RetrofitBuilder
impl Send for RetrofitBuilder
impl Sync for RetrofitBuilder
impl Unpin for RetrofitBuilder
impl !UnwindSafe for RetrofitBuilder
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