[−][src]Trait exonum::helpers::ValidateInput
Basic trait to validate user defined input.
Associated Types
type Error
The type returned in the event of a validate error.
Required methods
fn validate(&self) -> Result<(), Self::Error>
Perform parameters validation for this configuration and return error if value is inconsistent.
Provided methods
fn into_validated(self) -> Result<Self, Self::Error>
The same as validate method, but returns the value itself as a successful result.
Implementors
impl ValidateInput for ConsensusConfig
[src]
impl ValidateInput for ValidatorKeys
[src]
impl ValidateInput for ArtifactId
[src]
type Error = Error
fn validate(&self) -> Result<(), Self::Error>
[src]
Checks that the artifact name contains only allowed characters and is not empty.