pub struct RaisedResponse {
pub status: u16,
pub status_text: Option<String>,
pub headers: Vec<(String, String)>,
pub body: Value,
pub body_supplied: bool,
}Expand description
A response a database function asked for outright.
Fields§
§status: u16The HTTP status to answer with.
status_text: Option<String>The reason phrase, where the schema named one of its own.
headers: Vec<(String, String)>Headers to add to the response.
body: ValueThe response body, verbatim.
body_supplied: boolWhether the schema wrote the body itself, with a body key in DETAIL,
rather than leaving it to be built from the MESSAGE. Such a response is
the schema’s alone, so a Content-Type it raises replaces the default.
Trait Implementations§
Source§impl Clone for RaisedResponse
impl Clone for RaisedResponse
Auto Trait Implementations§
impl Forget for RaisedResponse
impl Freeze for RaisedResponse
impl Move for RaisedResponse
impl RefUnwindSafe for RaisedResponse
impl Send for RaisedResponse
impl Sync for RaisedResponse
impl Unpin for RaisedResponse
impl UnsafeUnpin for RaisedResponse
impl UnwindSafe for RaisedResponse
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more