pub struct Validator<'consignment, 'resolver, S, C, R>{ /* private fields */ }Implementations§
Source§impl<'consignment, 'resolver, S, C, R> Validator<'consignment, 'resolver, S, C, R>
impl<'consignment, 'resolver, S, C, R> Validator<'consignment, 'resolver, S, C, R>
Sourcepub fn validate(
consignment: &'consignment C,
resolver: &'resolver R,
context: <S as ContractStateEvolve>::Context<'_>,
validation_config: &ValidationConfig,
) -> Result<Status, ValidationError>
pub fn validate( consignment: &'consignment C, resolver: &'resolver R, context: <S as ContractStateEvolve>::Context<'_>, validation_config: &ValidationConfig, ) -> Result<Status, ValidationError>
Validation procedure takes a schema object, root schema (if any), resolver function returning transaction and its fee for a given transaction id, and returns a validation object listing all detected failures, warnings and additional information.
Auto Trait Implementations§
impl<'consignment, 'resolver, S, C, R> !Freeze for Validator<'consignment, 'resolver, S, C, R>
impl<'consignment, 'resolver, S, C, R> !RefUnwindSafe for Validator<'consignment, 'resolver, S, C, R>
impl<'consignment, 'resolver, S, C, R> !Send for Validator<'consignment, 'resolver, S, C, R>
impl<'consignment, 'resolver, S, C, R> !Sync for Validator<'consignment, 'resolver, S, C, R>
impl<'consignment, 'resolver, S, C, R> Unpin for Validator<'consignment, 'resolver, S, C, R>
impl<'consignment, 'resolver, S, C, R> !UnwindSafe for Validator<'consignment, 'resolver, S, C, R>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more