pub struct HttpFetchV1 {
pub url: String,
pub method: Option<String>,
pub headers: Option<HashMap<String, String>>,
pub body: Option<String>,
pub timeout_ms: Option<u32>,
}Expand description
Parameters for http.fetch.v1 capability
Fields§
§url: StringURL to fetch
method: Option<String>HTTP method (default: GET)
headers: Option<HashMap<String, String>>HTTP headers
body: Option<String>Request body (for POST/PUT)
timeout_ms: Option<u32>Timeout in milliseconds
Trait Implementations§
Source§impl Clone for HttpFetchV1
impl Clone for HttpFetchV1
Source§fn clone(&self) -> HttpFetchV1
fn clone(&self) -> HttpFetchV1
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for HttpFetchV1
impl Debug for HttpFetchV1
Source§impl<'de> Deserialize<'de> for HttpFetchV1
impl<'de> Deserialize<'de> for HttpFetchV1
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for HttpFetchV1
impl RefUnwindSafe for HttpFetchV1
impl Send for HttpFetchV1
impl Sync for HttpFetchV1
impl Unpin for HttpFetchV1
impl UnsafeUnpin for HttpFetchV1
impl UnwindSafe for HttpFetchV1
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