pub struct AdditionalExpectedResponse {
pub success: bool,
pub content_type: Option<String>,
pub schema: Option<String>,
}Expand description
The expected response message for additional responses.
Fields§
§success: boolIt is true if an additional response should not be considered an error.
content_type: Option<String>A content type.
It is based on a media type (e.g., text/plain) and potential parameters (e.g., charset=utf-8) for the media type (RFC2046).
schema: Option<String>The output data schema for an additional response if it differs from the default output data schema.
It is the name of a previous definition given in the
schema_definitions.
Trait Implementations§
Source§impl Clone for AdditionalExpectedResponse
impl Clone for AdditionalExpectedResponse
Source§fn clone(&self) -> AdditionalExpectedResponse
fn clone(&self) -> AdditionalExpectedResponse
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AdditionalExpectedResponse
impl Debug for AdditionalExpectedResponse
Source§impl Default for AdditionalExpectedResponse
impl Default for AdditionalExpectedResponse
Source§fn default() -> AdditionalExpectedResponse
fn default() -> AdditionalExpectedResponse
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for AdditionalExpectedResponse
impl<'de> Deserialize<'de> for AdditionalExpectedResponse
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<AdditionalExpectedResponse, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<AdditionalExpectedResponse, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for AdditionalExpectedResponse
impl PartialEq for AdditionalExpectedResponse
Source§fn eq(&self, other: &AdditionalExpectedResponse) -> bool
fn eq(&self, other: &AdditionalExpectedResponse) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for AdditionalExpectedResponse
impl Serialize for AdditionalExpectedResponse
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl Eq for AdditionalExpectedResponse
impl StructuralPartialEq for AdditionalExpectedResponse
Auto Trait Implementations§
impl Freeze for AdditionalExpectedResponse
impl RefUnwindSafe for AdditionalExpectedResponse
impl Send for AdditionalExpectedResponse
impl Sync for AdditionalExpectedResponse
impl Unpin for AdditionalExpectedResponse
impl UnwindSafe for AdditionalExpectedResponse
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