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