pub struct BatchRequestAction {
pub data: Value,
pub method: String,
pub options: Value,
pub relative_path: String,
}
Expand description
An action object for use in a batch request.
Fields§
§data: Value
For GET
requests, this should be a map of query parameters you would have normally passed in the URL. Options and pagination are not accepted here; put them in options
instead. For POST
, PATCH
, and PUT
methods, this should be the content you would have normally put in the data field of the body.
method: String
The HTTP method you wish to emulate for the action.
options: Value
Pagination (limit
and offset
) and output options (fields
or expand
) for the action. “Pretty” JSON output is not an available option on individual actions; if you want pretty output, specify that option on the parent request.
relative_path: String
The path of the desired endpoint relative to the API’s base URL. Query parameters are not accepted here; put them in data
instead.
Trait Implementations§
Source§impl Clone for BatchRequestAction
impl Clone for BatchRequestAction
Source§fn clone(&self) -> BatchRequestAction
fn clone(&self) -> BatchRequestAction
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 BatchRequestAction
impl Debug for BatchRequestAction
Source§impl Default for BatchRequestAction
impl Default for BatchRequestAction
Source§fn default() -> BatchRequestAction
fn default() -> BatchRequestAction
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for BatchRequestAction
impl<'de> Deserialize<'de> for BatchRequestAction
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 Display for BatchRequestAction
impl Display for BatchRequestAction
Auto Trait Implementations§
impl Freeze for BatchRequestAction
impl RefUnwindSafe for BatchRequestAction
impl Send for BatchRequestAction
impl Sync for BatchRequestAction
impl Unpin for BatchRequestAction
impl UnwindSafe for BatchRequestAction
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