Struct ockam_core::api::Request
source · pub struct Request<T = ()> { /* private fields */ }
Implementations§
source§impl Request
impl Request
pub fn get<P: Into<String>>(path: P) -> Request
pub fn post<P: Into<String>>(path: P) -> Request
pub fn put<P: Into<String>>(path: P) -> Request
pub fn delete<P: Into<String>>(path: P) -> Request
pub fn patch<P: Into<String>>(path: P) -> Request
pub fn build<P: Into<String>>(method: Method, path: P) -> Request
Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for Request<T>where
T: Freeze,
impl<T> RefUnwindSafe for Request<T>where
T: RefUnwindSafe,
impl<T> Send for Request<T>where
T: Send,
impl<T> Sync for Request<T>where
T: Sync,
impl<T> Unpin for Request<T>where
T: Unpin,
impl<T> UnwindSafe for Request<T>where
T: UnwindSafe,
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