pub trait ValidatableCustomExtension<T>: CustomExtension {
    // Required methods
    fn apply_validation_for_custom_value<'de>(
        schema: &SchemaV1<Self::CustomSchema>,
        custom_value: &<Self::CustomTraversal as CustomTraversal>::CustomTerminalValueRef<'de>,
        type_id: LocalTypeId,
        context: &T
    ) -> Result<(), PayloadValidationError<Self>>;
    fn apply_custom_type_validation_for_non_custom_value<'de>(
        schema: &SchemaV1<Self::CustomSchema>,
        custom_type_validation: &<Self::CustomSchema as CustomSchema>::CustomTypeValidation,
        non_custom_value: &TerminalValueRef<'de, Self::CustomTraversal>,
        context: &T
    ) -> Result<(), PayloadValidationError<Self>>;
}

Required Methods§

source

fn apply_validation_for_custom_value<'de>( schema: &SchemaV1<Self::CustomSchema>, custom_value: &<Self::CustomTraversal as CustomTraversal>::CustomTerminalValueRef<'de>, type_id: LocalTypeId, context: &T ) -> Result<(), PayloadValidationError<Self>>

source

fn apply_custom_type_validation_for_non_custom_value<'de>( schema: &SchemaV1<Self::CustomSchema>, custom_type_validation: &<Self::CustomSchema as CustomSchema>::CustomTypeValidation, non_custom_value: &TerminalValueRef<'de, Self::CustomTraversal>, context: &T ) -> Result<(), PayloadValidationError<Self>>

Object Safety§

This trait is not object safe.

Implementors§