pub struct HTTPArguments {
pub method: String,
pub endpoint: OneOfEndpointDefinitionOrUri,
pub headers: Option<OneOfHeadersOrExpression>,
pub body: Option<Value>,
pub query: Option<OneOfQueryOrExpression>,
pub output: Option<String>,
pub redirect: Option<bool>,
}Expand description
Represents the HTTP call arguments
Fields§
§method: StringGets/sets the HTTP method of the HTTP request to perform
endpoint: OneOfEndpointDefinitionOrUriGets/sets the HTTP endpoint to send the request to
headers: Option<OneOfHeadersOrExpression>Gets/sets a name/value mapping of the headers, if any, of the HTTP request to perform
body: Option<Value>Gets/sets the body, if any, of the HTTP request to perform
query: Option<OneOfQueryOrExpression>Gets/sets a name/value mapping of the query parameters, if any, of the HTTP request to perform
output: Option<String>Gets/sets the http call output format. Defaults to ‘content’
redirect: Option<bool>Gets/sets whether redirection status codes (300-399) should be treated as errors
Trait Implementations§
Source§impl Clone for HTTPArguments
impl Clone for HTTPArguments
Source§fn clone(&self) -> HTTPArguments
fn clone(&self) -> HTTPArguments
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 HTTPArguments
impl Debug for HTTPArguments
Source§impl Default for HTTPArguments
impl Default for HTTPArguments
Source§fn default() -> HTTPArguments
fn default() -> HTTPArguments
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for HTTPArguments
impl<'de> Deserialize<'de> for HTTPArguments
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
Source§impl PartialEq for HTTPArguments
impl PartialEq for HTTPArguments
Source§fn eq(&self, other: &HTTPArguments) -> bool
fn eq(&self, other: &HTTPArguments) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for HTTPArguments
impl Serialize for HTTPArguments
impl StructuralPartialEq for HTTPArguments
Auto Trait Implementations§
impl Freeze for HTTPArguments
impl RefUnwindSafe for HTTPArguments
impl Send for HTTPArguments
impl Sync for HTTPArguments
impl Unpin for HTTPArguments
impl UnsafeUnpin for HTTPArguments
impl UnwindSafe for HTTPArguments
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