Struct tea_sdk::actors::http::OracleHttpRequest
pub struct OracleHttpRequest {
pub method: String,
pub url: String,
pub headers: Option<Vec<(String, String)>>,
pub payload: Option<String>,
}
Expand description
Base request to send a oracle http request via tea system. method could be GET, POST, PUT or DELETE. url is the base request url, not that only support https. headers is a vec truple, can input the base auth key or anything you need. payload is the data body you need to post.
Fields§
§method: String
§url: String
§headers: Option<Vec<(String, String)>>
§payload: Option<String>
Trait Implementations§
§impl Clone for OracleHttpRequest
impl Clone for OracleHttpRequest
§fn clone(&self) -> OracleHttpRequest
fn clone(&self) -> OracleHttpRequest
Returns a copy 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 more§impl Debug for OracleHttpRequest
impl Debug for OracleHttpRequest
§impl<'de> Deserialize<'de> for OracleHttpRequest
impl<'de> Deserialize<'de> for OracleHttpRequest
§fn deserialize<__D>(
__deserializer: __D
) -> Result<OracleHttpRequest, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>( __deserializer: __D ) -> Result<OracleHttpRequest, <__D as Deserializer<'de>>::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
§impl Request for OracleHttpRequest
impl Request for OracleHttpRequest
type Response = OracleHttpResponse
§impl Serialize for OracleHttpRequest
impl Serialize for OracleHttpRequest
§fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>( &self, __serializer: __S ) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where __S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl RefUnwindSafe for OracleHttpRequest
impl Send for OracleHttpRequest
impl Sync for OracleHttpRequest
impl Unpin for OracleHttpRequest
impl UnwindSafe for OracleHttpRequest
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