pub struct HandlerSignature {
pub name: String,
pub params: Vec<HandlerParam>,
pub return_type: HandlerReturnType,
pub has_context: bool,
pub message_param: Option<usize>,
}Expand description
Parsed handler signature.
Fields§
§name: StringFunction name.
params: Vec<HandlerParam>Parameters.
return_type: HandlerReturnTypeReturn type.
has_context: boolWhether the handler takes a context parameter.
message_param: Option<usize>Index of the message parameter (if any).
Trait Implementations§
Source§impl Clone for HandlerSignature
impl Clone for HandlerSignature
Source§fn clone(&self) -> HandlerSignature
fn clone(&self) -> HandlerSignature
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 HandlerSignature
impl RefUnwindSafe for HandlerSignature
impl Send for HandlerSignature
impl Sync for HandlerSignature
impl Unpin for HandlerSignature
impl UnwindSafe for HandlerSignature
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