pub struct StaticResponsePlan {
pub status: ResponseStatus,
pub headers: HeaderMapPlan,
pub body: BodyPlan,
}Expand description
A complete response plan that can be translated into any HTTP framework.
Fields§
§status: ResponseStatus§headers: HeaderMapPlan§body: BodyPlanImplementations§
Source§impl StaticResponsePlan
impl StaticResponsePlan
pub fn status_code(&self) -> u16
Trait Implementations§
Source§impl Clone for StaticResponsePlan
impl Clone for StaticResponsePlan
Source§fn clone(&self) -> StaticResponsePlan
fn clone(&self) -> StaticResponsePlan
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 StaticResponsePlan
impl Debug for StaticResponsePlan
impl Eq for StaticResponsePlan
Source§impl PartialEq for StaticResponsePlan
impl PartialEq for StaticResponsePlan
impl StructuralPartialEq for StaticResponsePlan
Auto Trait Implementations§
impl Freeze for StaticResponsePlan
impl RefUnwindSafe for StaticResponsePlan
impl Send for StaticResponsePlan
impl Sync for StaticResponsePlan
impl Unpin for StaticResponsePlan
impl UnsafeUnpin for StaticResponsePlan
impl UnwindSafe for StaticResponsePlan
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