Struct emerald_core::contract::Contracts
[−]
[src]
pub struct Contracts { /* fields omitted */ }
Contracts Service
Methods
impl Contracts
[src]
fn new(dir: PathBuf) -> Contracts
Initialize new contracts service for a dir
fn list(&self) -> Vec<Value>
List all available contracts
fn validate(&self, contract: &Value) -> Result<(), ContractError>
Validate contract structure
fn add(&self, contract: &Value) -> Result<(), ContractError>
Add new contract to storage
Trait Implementations
impl Debug for Contracts
[src]
impl Clone for Contracts
[src]
fn clone(&self) -> Contracts
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl PartialEq for Contracts
[src]
fn eq(&self, __arg_0: &Contracts) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Contracts) -> bool
This method tests for !=
.