pub struct RuleScriptRegistry {
pub helpers: HashMap<String, ScriptHelperEntry>,
}Expand description
Registry of script helper functions that can be called from rule templates via {{script:fnName}}. Populated at script load time from globalThis.scriptHelpers. This is a data-only struct in 1.0; runtime invocation deferred to 1.x.
Fields§
§helpers: HashMap<String, ScriptHelperEntry>Trait Implementations§
Source§impl Clone for RuleScriptRegistry
impl Clone for RuleScriptRegistry
Source§fn clone(&self) -> RuleScriptRegistry
fn clone(&self) -> RuleScriptRegistry
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 moreSource§impl Debug for RuleScriptRegistry
impl Debug for RuleScriptRegistry
Source§impl Default for RuleScriptRegistry
impl Default for RuleScriptRegistry
Source§fn default() -> RuleScriptRegistry
fn default() -> RuleScriptRegistry
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for RuleScriptRegistry
impl<'de> Deserialize<'de> for RuleScriptRegistry
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<RuleScriptRegistry, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<RuleScriptRegistry, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for RuleScriptRegistry
impl Serialize for RuleScriptRegistry
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl Freeze for RuleScriptRegistry
impl RefUnwindSafe for RuleScriptRegistry
impl Send for RuleScriptRegistry
impl Sync for RuleScriptRegistry
impl Unpin for RuleScriptRegistry
impl UnsafeUnpin for RuleScriptRegistry
impl UnwindSafe for RuleScriptRegistry
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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