Struct netserver::DebugOptions
source · pub struct DebugOptions {
pub show_response_body: bool,
pub show_request_query: bool,
pub show_request_body: bool,
pub show_middleware: bool,
}Expand description
Options for the debug type of Mode. customize the amount of debugging and the data you want to see.
Examples
let mut server = WebServer::new();
server.mode(Mode::Debug(DebugOptions {
show_request_body: true,
show_response_body: true,
show_request_query: false,
show_middleware: true,
}));
server.on_static(RequestType::Get, "/", "123")
server.listen("127.0.0.1:5000").unwrap();Fields§
§show_response_body: bool§show_request_query: bool§show_request_body: bool§show_middleware: boolTrait Implementations§
source§impl Clone for DebugOptions
impl Clone for DebugOptions
source§fn clone(&self) -> DebugOptions
fn clone(&self) -> DebugOptions
Returns a copy of the value. Read more
1.0.0 · 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 DebugOptions
impl Debug for DebugOptions
source§impl Hash for DebugOptions
impl Hash for DebugOptions
source§impl PartialEq for DebugOptions
impl PartialEq for DebugOptions
source§fn eq(&self, other: &DebugOptions) -> bool
fn eq(&self, other: &DebugOptions) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl Copy for DebugOptions
impl Eq for DebugOptions
impl StructuralEq for DebugOptions
impl StructuralPartialEq for DebugOptions
Auto Trait Implementations§
impl RefUnwindSafe for DebugOptions
impl Send for DebugOptions
impl Sync for DebugOptions
impl Unpin for DebugOptions
impl UnwindSafe for DebugOptions
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