pub struct AddonConstructFactory {
pub functions: HashMap<String, FunctionSpecification>,
pub commands: HashMap<CommandId, PreCommandSpecification>,
pub signers: HashMap<String, SignerSpecification>,
}Fields§
§functions: HashMap<String, FunctionSpecification>Functions supported by addon
commands: HashMap<CommandId, PreCommandSpecification>Commands supported by addon
signers: HashMap<String, SignerSpecification>Signing commands supported by addon
Implementations§
Source§impl AddonConstructFactory
impl AddonConstructFactory
pub fn create_command_instance( &self, command_id: &CommandId, namespace: &str, command_name: &str, block: &Block, package_id: &PackageId, ) -> Result<CommandInstance, Diagnostic>
pub fn create_signer_instance( &self, signer_id: &str, namespace: &str, signer_name: &str, block: &Block, package_id: &PackageId, ) -> Result<SignerInstance, Diagnostic>
Trait Implementations§
Source§impl Clone for AddonConstructFactory
impl Clone for AddonConstructFactory
Source§fn clone(&self) -> AddonConstructFactory
fn clone(&self) -> AddonConstructFactory
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 AddonConstructFactory
impl RefUnwindSafe for AddonConstructFactory
impl Send for AddonConstructFactory
impl Sync for AddonConstructFactory
impl Unpin for AddonConstructFactory
impl UnsafeUnpin for AddonConstructFactory
impl UnwindSafe for AddonConstructFactory
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