pub struct OperationResponse {
pub schema_name: Option<String>,
pub media_type: Option<String>,
pub body: Option<OperationResponseBody>,
pub supports_streaming: bool,
pub has_content: bool,
pub unsupported_media_types: Vec<String>,
}Expand description
Server-relevant semantics of one OpenAPI Response Object.
Fields§
§schema_name: Option<String>Generated Rust body type for the preferred JSON-compatible content.
media_type: Option<String>Exact declared JSON-compatible media type selected for schema_name.
body: Option<OperationResponseBody>Preferred buffered response representation for this status. JSON keeps its generated schema name; text and binary bodies are represented directly by the generated client/server runtime types.
supports_streaming: boolWhether this response also declares text/event-stream content.
has_content: boolWhether the Response Object declared at least one content entry.
unsupported_media_types: Vec<String>Declared response media types the server generator cannot emit.
Trait Implementations§
Source§impl Clone for OperationResponse
impl Clone for OperationResponse
Source§fn clone(&self) -> OperationResponse
fn clone(&self) -> OperationResponse
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 OperationResponse
impl Debug for OperationResponse
Source§impl Default for OperationResponse
impl Default for OperationResponse
Source§fn default() -> OperationResponse
fn default() -> OperationResponse
Returns the “default value” for a type. Read more
impl Eq for OperationResponse
Source§impl PartialEq for OperationResponse
impl PartialEq for OperationResponse
Source§impl Serialize for OperationResponse
impl Serialize for OperationResponse
impl StructuralPartialEq for OperationResponse
Auto Trait Implementations§
impl Freeze for OperationResponse
impl RefUnwindSafe for OperationResponse
impl Send for OperationResponse
impl Sync for OperationResponse
impl Unpin for OperationResponse
impl UnsafeUnpin for OperationResponse
impl UnwindSafe for OperationResponse
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<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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.