pub struct ResponseRef {
pub status: String,
pub severity: ResponseSeverity,
pub schema_ref: Reference,
pub media_type: String,
pub description: String,
pub protocols: Vec<ProtocolAttachment>,
}Expand description
Response attachment on an OperationBody, referencing a schema entity.
Fields§
§status: StringHTTP or RPC status label.
severity: ResponseSeverityOutcome severity class derived from the status at populate time.
schema_ref: ReferenceStructural reference to the response schema entity.
media_type: StringResponse media type when applicable.
description: StringOpenAPI response description prose, when present.
protocols: Vec<ProtocolAttachment>Protocol-specific response or error metadata.
Trait Implementations§
Source§impl Clone for ResponseRef
impl Clone for ResponseRef
Source§fn clone(&self) -> ResponseRef
fn clone(&self) -> ResponseRef
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 ResponseRef
impl Debug for ResponseRef
impl Eq for ResponseRef
Source§impl PartialEq for ResponseRef
impl PartialEq for ResponseRef
Source§fn eq(&self, other: &ResponseRef) -> bool
fn eq(&self, other: &ResponseRef) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ResponseRef
Auto Trait Implementations§
impl Freeze for ResponseRef
impl RefUnwindSafe for ResponseRef
impl Send for ResponseRef
impl Sync for ResponseRef
impl Unpin for ResponseRef
impl UnsafeUnpin for ResponseRef
impl UnwindSafe for ResponseRef
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