pub struct ScriptDescriptor {
pub name: &'static str,
pub invoke: InvokeFn,
pub signature_json: &'static str,
pub signature_hash: u64,
}Expand description
Descriptor for a registered script.
Collected at link time by quark::inventory for #[chronon::script] handlers or
built manually in tests via Self::new.
Fields§
§name: &'static strUnique script name.
invoke: InvokeFnFunction to invoke the script with deserialized parameters.
signature_json: &'static strJSON schema for parameters (computed at compile time by chronon-macros).
signature_hash: u64Hash of the signature for version checking.
Implementations§
Trait Implementations§
impl Collect for ScriptDescriptor
Source§impl Debug for ScriptDescriptor
impl Debug for ScriptDescriptor
Source§impl Registrable for ScriptDescriptor
impl Registrable for ScriptDescriptor
Source§fn registry_key(&self) -> &str
fn registry_key(&self) -> &str
Return the unique lookup key used by the registry.
Auto Trait Implementations§
impl Freeze for ScriptDescriptor
impl RefUnwindSafe for ScriptDescriptor
impl Send for ScriptDescriptor
impl Sync for ScriptDescriptor
impl Unpin for ScriptDescriptor
impl UnsafeUnpin for ScriptDescriptor
impl UnwindSafe for ScriptDescriptor
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