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>,
pub representations: BTreeMap<String, OperationRepresentation>,
}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.
representations: BTreeMap<String, OperationRepresentation>Every supported representation, keyed by exact declared media type.
Trait Implementations§
Source§impl Clone for OperationResponse
impl Clone for OperationResponse
Source§impl Debug for OperationResponse
impl Debug for OperationResponse
Source§impl Default for OperationResponse
impl Default for OperationResponse
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.