pub struct CustomHttpRequest {
pub url: String,
pub method: String,
pub headers: HashMap<String, String>,
pub body: Vec<u8>,
}Expand description
http 请求的结构体
Fields§
§url: String请求路径
method: String请求类型
headers: HashMap<String, String>请求头
body: Vec<u8>请求体
Trait Implementations§
Source§impl CandidType for CustomHttpRequest
impl CandidType for CustomHttpRequest
Source§impl Clone for CustomHttpRequest
impl Clone for CustomHttpRequest
Source§fn clone(&self) -> CustomHttpRequest
fn clone(&self) -> CustomHttpRequest
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 CustomHttpRequest
impl Debug for CustomHttpRequest
Source§impl<'de> Deserialize<'de> for CustomHttpRequest
impl<'de> Deserialize<'de> for CustomHttpRequest
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 CustomHttpRequest
impl RefUnwindSafe for CustomHttpRequest
impl Send for CustomHttpRequest
impl Sync for CustomHttpRequest
impl Unpin for CustomHttpRequest
impl UnsafeUnpin for CustomHttpRequest
impl UnwindSafe for CustomHttpRequest
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