Struct postman2openapi::postman::ResponseClass
source · pub struct ResponseClass {
pub name: Option<String>,
pub body: Option<String>,
pub code: Option<i64>,
pub cookie: Option<Vec<Cookie>>,
pub header: Option<Headers>,
pub id: Option<String>,
pub original_request: Option<RequestClass>,
pub response_time: Option<ResponseTime>,
pub status: Option<String>,
}
Fields§
§name: Option<String>
The name of the response.
body: Option<String>
The raw text of the response.
code: Option<i64>
The numerical response code, example: 200, 201, 404, etc.
header: Option<Headers>
§id: Option<String>
A unique, user defined identifier that can be used to refer to this response from requests.
original_request: Option<RequestClass>
§response_time: Option<ResponseTime>
The time taken by the request to complete. If a number, the unit is milliseconds. If the
response is manually created, this can be set to null
.
status: Option<String>
The response status, e.g: ‘200 OK’
Trait Implementations§
source§impl Clone for ResponseClass
impl Clone for ResponseClass
source§fn clone(&self) -> ResponseClass
fn clone(&self) -> ResponseClass
Returns a copy 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 ResponseClass
impl Debug for ResponseClass
source§impl<'de> Deserialize<'de> for ResponseClass
impl<'de> Deserialize<'de> for ResponseClass
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 ResponseClass
impl PartialEq for ResponseClass
source§fn eq(&self, other: &ResponseClass) -> bool
fn eq(&self, other: &ResponseClass) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for ResponseClass
impl Serialize for ResponseClass
impl Eq for ResponseClass
impl StructuralPartialEq for ResponseClass
Auto Trait Implementations§
impl RefUnwindSafe for ResponseClass
impl Send for ResponseClass
impl Sync for ResponseClass
impl Unpin for ResponseClass
impl UnwindSafe for ResponseClass
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
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.