Struct sn0int_std::web::RequestOptions
source · pub struct RequestOptions {
pub query: Option<HashMap<String, String>>,
pub headers: Option<HashMap<String, String>>,
pub basic_auth: Option<(String, String)>,
pub user_agent: Option<String>,
pub json: Option<Value>,
pub form: Option<Value>,
pub follow_redirects: usize,
pub body: Option<String>,
pub timeout: Option<u64>,
pub into_blob: bool,
pub proxy: Option<SocketAddr>,
pub binary: bool,
}
Fields§
§query: Option<HashMap<String, String>>
§headers: Option<HashMap<String, String>>
§basic_auth: Option<(String, String)>
§user_agent: Option<String>
§json: Option<Value>
§form: Option<Value>
§follow_redirects: usize
§body: Option<String>
§timeout: Option<u64>
§into_blob: bool
§proxy: Option<SocketAddr>
§binary: bool
Implementations§
source§impl RequestOptions
impl RequestOptions
pub fn try_from(x: AnyLuaValue) -> Result<RequestOptions, Error>
Trait Implementations§
source§impl Debug for RequestOptions
impl Debug for RequestOptions
source§impl Default for RequestOptions
impl Default for RequestOptions
source§fn default() -> RequestOptions
fn default() -> RequestOptions
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for RequestOptions
impl<'de> Deserialize<'de> for RequestOptions
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 RefUnwindSafe for RequestOptions
impl Send for RequestOptions
impl Sync for RequestOptions
impl Unpin for RequestOptions
impl UnwindSafe for RequestOptions
Blanket Implementations§
§impl<'a, T> AsTaggedExplicit<'a> for Twhere
T: 'a,
impl<'a, T> AsTaggedExplicit<'a> for Twhere T: 'a,
§impl<'a, T> AsTaggedImplicit<'a> for Twhere
T: 'a,
impl<'a, T> AsTaggedImplicit<'a> for Twhere T: 'a,
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