Struct asana::models::error_response::ErrorResponse
source · [−]Expand description
ErrorResponse : Sadly, sometimes requests to the API are not successful. Failures can occur for a wide range of reasons. In all cases, the API should return an HTTP Status Code that indicates the nature of the failure, with a response body in JSON format containing additional information. In the event of a server error the response body will contain an error phrase. These phrases are automatically generated using the node-asana-phrase library and can be used by Asana support to quickly look up the incident that caused the server error.
Fields
errors: Option<Vec<Error>>
Implementations
sourceimpl ErrorResponse
impl ErrorResponse
sourcepub fn new() -> ErrorResponse
pub fn new() -> ErrorResponse
Sadly, sometimes requests to the API are not successful. Failures can occur for a wide range of reasons. In all cases, the API should return an HTTP Status Code that indicates the nature of the failure, with a response body in JSON format containing additional information. In the event of a server error the response body will contain an error phrase. These phrases are automatically generated using the node-asana-phrase library and can be used by Asana support to quickly look up the incident that caused the server error.
Trait Implementations
sourceimpl Clone for ErrorResponse
impl Clone for ErrorResponse
sourcefn clone(&self) -> ErrorResponse
fn clone(&self) -> ErrorResponse
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more