#[non_exhaustive]pub struct ScriptHandler {
pub script_path: String,
/* private fields */
}
Expand description
Executes a script to handle the request that matches the URL pattern.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.script_path: String
Path to the script from the application root directory.
Implementations§
Source§impl ScriptHandler
impl ScriptHandler
pub fn new() -> Self
Sourcepub fn set_script_path<T: Into<String>>(self, v: T) -> Self
pub fn set_script_path<T: Into<String>>(self, v: T) -> Self
Sets the value of script_path.
Trait Implementations§
Source§impl Clone for ScriptHandler
impl Clone for ScriptHandler
Source§fn clone(&self) -> ScriptHandler
fn clone(&self) -> ScriptHandler
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 ScriptHandler
impl Debug for ScriptHandler
Source§impl Default for ScriptHandler
impl Default for ScriptHandler
Source§fn default() -> ScriptHandler
fn default() -> ScriptHandler
Returns the “default value” for a type. Read more
Source§impl Message for ScriptHandler
impl Message for ScriptHandler
Source§impl PartialEq for ScriptHandler
impl PartialEq for ScriptHandler
impl StructuralPartialEq for ScriptHandler
Auto Trait Implementations§
impl Freeze for ScriptHandler
impl RefUnwindSafe for ScriptHandler
impl Send for ScriptHandler
impl Sync for ScriptHandler
impl Unpin for ScriptHandler
impl UnwindSafe for ScriptHandler
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