pub struct ActionHandler {
pub route: String,
pub method: String,
pub node_id: String,
pub handler_code: String,
}Expand description
A server-side action handler derived from an ActionNode.
Fields§
§route: StringRoute path (e.g., “/api/contact”).
method: StringHTTP method (e.g., “POST”).
node_id: StringNode ID from the IR.
handler_code: StringHandler body — JS/TS code stub for the serverless function.
Trait Implementations§
Source§impl Clone for ActionHandler
impl Clone for ActionHandler
Source§fn clone(&self) -> ActionHandler
fn clone(&self) -> ActionHandler
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 moreAuto Trait Implementations§
impl Freeze for ActionHandler
impl RefUnwindSafe for ActionHandler
impl Send for ActionHandler
impl Sync for ActionHandler
impl Unpin for ActionHandler
impl UnsafeUnpin for ActionHandler
impl UnwindSafe for ActionHandler
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