Struct asana::models::batch_request_action::BatchRequestAction
source · [−]pub struct BatchRequestAction {
pub relative_path: String,
pub method: Method,
pub data: Option<Value>,
pub options: Option<Box<BatchRequestActionOptions>>,
}
Expand description
BatchRequestAction : An action object for use in a batch request.
Fields
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.
method: Method
The HTTP method you wish to emulate for the action.
data: Option<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.
options: Option<Box<BatchRequestActionOptions>>
Implementations
sourceimpl BatchRequestAction
impl BatchRequestAction
sourcepub fn new(relative_path: String, method: Method) -> BatchRequestAction
pub fn new(relative_path: String, method: Method) -> BatchRequestAction
An action object for use in a batch request.
Trait Implementations
sourceimpl Clone for BatchRequestAction
impl Clone for BatchRequestAction
sourcefn clone(&self) -> BatchRequestAction
fn clone(&self) -> BatchRequestAction
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for BatchRequestAction
impl Debug for BatchRequestAction
sourceimpl<'de> Deserialize<'de> for BatchRequestAction
impl<'de> Deserialize<'de> for BatchRequestAction
sourcefn 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
sourceimpl PartialEq<BatchRequestAction> for BatchRequestAction
impl PartialEq<BatchRequestAction> for BatchRequestAction
sourcefn eq(&self, other: &BatchRequestAction) -> bool
fn eq(&self, other: &BatchRequestAction) -> bool
sourceimpl Serialize for BatchRequestAction
impl Serialize for BatchRequestAction
impl StructuralPartialEq for BatchRequestAction
Auto Trait Implementations
impl RefUnwindSafe for BatchRequestAction
impl Send for BatchRequestAction
impl Sync for BatchRequestAction
impl Unpin for BatchRequestAction
impl UnwindSafe for BatchRequestAction
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more