pub struct FrameworkBuiltinResponse {
pub status_code: u16,
pub status_text: &'static str,
pub body: String,
}Expand description
Response payload returned by a framework-owned route.
Fields§
§status_code: u16§status_text: &'static str§body: StringTrait Implementations§
Source§impl Clone for FrameworkBuiltinResponse
impl Clone for FrameworkBuiltinResponse
Source§fn clone(&self) -> FrameworkBuiltinResponse
fn clone(&self) -> FrameworkBuiltinResponse
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 FrameworkBuiltinResponse
impl Debug for FrameworkBuiltinResponse
Source§impl PartialEq for FrameworkBuiltinResponse
impl PartialEq for FrameworkBuiltinResponse
Source§fn eq(&self, other: &FrameworkBuiltinResponse) -> bool
fn eq(&self, other: &FrameworkBuiltinResponse) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for FrameworkBuiltinResponse
impl StructuralPartialEq for FrameworkBuiltinResponse
Auto Trait Implementations§
impl Freeze for FrameworkBuiltinResponse
impl RefUnwindSafe for FrameworkBuiltinResponse
impl Send for FrameworkBuiltinResponse
impl Sync for FrameworkBuiltinResponse
impl Unpin for FrameworkBuiltinResponse
impl UnsafeUnpin for FrameworkBuiltinResponse
impl UnwindSafe for FrameworkBuiltinResponse
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,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.