pub struct ResponseBody {
pub status: String,
pub severity: ResponseSeverity,
pub media_type: String,
pub fence_language: String,
pub fence_body: String,
pub protocols: Vec<ProtocolAttachment>,
}Expand description
Response entity body (status, media type, schema excerpt).
Fields§
§status: StringHTTP or RPC status label.
severity: ResponseSeverityOutcome severity class derived from the status at populate time.
media_type: StringResponse media type when applicable.
fence_language: StringLanguage tag for the fenced code block.
fence_body: StringFenced source excerpt for the response schema.
protocols: Vec<ProtocolAttachment>Protocol-specific response or error metadata.
Trait Implementations§
Source§impl Clone for ResponseBody
impl Clone for ResponseBody
Source§fn clone(&self) -> ResponseBody
fn clone(&self) -> ResponseBody
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 ResponseBody
impl Debug for ResponseBody
Source§impl Default for ResponseBody
impl Default for ResponseBody
Source§fn default() -> ResponseBody
fn default() -> ResponseBody
Returns the “default value” for a type. Read more
impl Eq for ResponseBody
Source§impl PartialEq for ResponseBody
impl PartialEq for ResponseBody
Source§fn eq(&self, other: &ResponseBody) -> bool
fn eq(&self, other: &ResponseBody) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ResponseBody
Auto Trait Implementations§
impl Freeze for ResponseBody
impl RefUnwindSafe for ResponseBody
impl Send for ResponseBody
impl Sync for ResponseBody
impl Unpin for ResponseBody
impl UnsafeUnpin for ResponseBody
impl UnwindSafe for ResponseBody
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