Trait Addon
Source pub trait Addon:
Debug
+ Sync
+ Send {
// Required methods
fn get_name(&self) -> &str;
fn get_description(&self) -> &str;
fn get_namespace(&self) -> &str;
// Provided methods
fn get_functions(&self) -> Vec<FunctionSpecification> { ... }
fn get_actions(&self) -> Vec<PreCommandSpecification> { ... }
fn get_signers(&self) -> Vec<SignerSpecification> { ... }
fn to_json(&self, _value: &Value) -> Result<Option<Value>, Diagnostic> { ... }
fn build_function_lookup(&self) -> HashMap<String, FunctionSpecification> { ... }
fn build_command_lookup(
&self,
) -> HashMap<CommandId, PreCommandSpecification> { ... }
fn build_signer_lookup(&self) -> HashMap<String, SignerSpecification> { ... }
fn get_domain_specific_commands_inputs_dependencies<'a>(
&self,
_commands_instances: &'a Vec<(ConstructDid, &'a CommandInstance, Option<&'a CommandInputsEvaluationResult>)>,
) -> Result<AddonPostProcessingResult, (Diagnostic, ConstructDid)> { ... }
}
Expand description