pub enum HandlerType {
Template,
Json,
Static,
Form,
Redirect,
Custom,
}
Expand description
Built-in handler types
Variants§
Template
Template-based HTML response
Json
JSON response
Static
Static file response
Form
Form handler
Redirect
Redirect response
Custom
Custom handler (for advanced use cases)
Trait Implementations§
Source§impl Clone for HandlerType
impl Clone for HandlerType
Source§fn clone(&self) -> HandlerType
fn clone(&self) -> HandlerType
Returns a duplicate 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 HandlerType
impl Debug for HandlerType
Source§impl<'de> Deserialize<'de> for HandlerType
impl<'de> Deserialize<'de> for HandlerType
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for HandlerType
impl RefUnwindSafe for HandlerType
impl Send for HandlerType
impl Sync for HandlerType
impl Unpin for HandlerType
impl UnwindSafe for HandlerType
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