Struct asana::models::batch_response::BatchResponse
source · [−]pub struct BatchResponse {
pub status_code: Option<i32>,
pub headers: Option<Value>,
pub body: Option<Value>,
}
Expand description
BatchResponse : A response object returned from a batch request.
Fields
status_code: Option<i32>
The HTTP status code that the invoked endpoint returned.
headers: Option<Value>
A map of HTTP headers specific to this result. This is primarily used for returning a Location
header to accompany a 201 Created
result. The parent HTTP response will contain all common headers.
body: Option<Value>
The JSON body that the invoked endpoint returned.
Implementations
sourceimpl BatchResponse
impl BatchResponse
sourcepub fn new() -> BatchResponse
pub fn new() -> BatchResponse
A response object returned from a batch request.
Trait Implementations
sourceimpl Clone for BatchResponse
impl Clone for BatchResponse
sourcefn clone(&self) -> BatchResponse
fn clone(&self) -> BatchResponse
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 BatchResponse
impl Debug for BatchResponse
sourceimpl<'de> Deserialize<'de> for BatchResponse
impl<'de> Deserialize<'de> for BatchResponse
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<BatchResponse> for BatchResponse
impl PartialEq<BatchResponse> for BatchResponse
sourcefn eq(&self, other: &BatchResponse) -> bool
fn eq(&self, other: &BatchResponse) -> bool
sourceimpl Serialize for BatchResponse
impl Serialize for BatchResponse
impl StructuralPartialEq for BatchResponse
Auto Trait Implementations
impl RefUnwindSafe for BatchResponse
impl Send for BatchResponse
impl Sync for BatchResponse
impl Unpin for BatchResponse
impl UnwindSafe for BatchResponse
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