pub struct HandlerMeta {
pub args: Vec<TsField>,
pub returns: TsType,
pub streaming: bool,
pub stream_item: Option<TsType>,
}Expand description
Metadata describing a handler’s argument and return types
Fields§
§args: Vec<TsField>Argument fields (empty = no args)
returns: TsTypeReturn type
streaming: boolWhether this is a streaming handler
stream_item: Option<TsType>For streaming handlers: the type of each stream item
Implementations§
Trait Implementations§
Source§impl Clone for HandlerMeta
impl Clone for HandlerMeta
Source§fn clone(&self) -> HandlerMeta
fn clone(&self) -> HandlerMeta
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 Forget for HandlerMeta
impl Freeze for HandlerMeta
impl Move for HandlerMeta
impl RefUnwindSafe for HandlerMeta
impl Send for HandlerMeta
impl Sync for HandlerMeta
impl Unpin for HandlerMeta
impl UnsafeUnpin for HandlerMeta
impl UnwindSafe for HandlerMeta
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