pub struct ResponseBuilder { /* private fields */ }
Implementations§
Source§impl ResponseBuilder
impl ResponseBuilder
pub fn url<S: Into<String>>(&mut self, url: S) -> &mut Self
pub fn status(&mut self, status: u32) -> &mut Self
pub fn method<S: Into<String>>(&mut self, method: S) -> &mut Self
pub fn headers(&mut self, headers: HashMap<String, Value>) -> &mut Self
pub fn body(&mut self, body: Value) -> &mut Self
pub fn build(&self) -> Response
Auto Trait Implementations§
impl Freeze for ResponseBuilder
impl RefUnwindSafe for ResponseBuilder
impl Send for ResponseBuilder
impl Sync for ResponseBuilder
impl Unpin for ResponseBuilder
impl UnwindSafe for ResponseBuilder
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