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