Struct vertigo::FetchBuilder
source · pub struct FetchBuilder { /* private fields */ }
Expand description
Builder for simple requests.
Implementations
sourceimpl FetchBuilder
impl FetchBuilder
pub fn new(api: ApiImport, url: String) -> FetchBuilder
pub fn set_headres(self, headers: HashMap<String, String>) -> Self
pub fn set_body(self, body: String) -> Self
pub async fn get(self) -> FetchResult
pub async fn post(self) -> FetchResult
Auto Trait Implementations
impl !RefUnwindSafe for FetchBuilder
impl !Send for FetchBuilder
impl !Sync for FetchBuilder
impl Unpin for FetchBuilder
impl !UnwindSafe for FetchBuilder
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more