AsValidateErrorStore

Trait AsValidateErrorStore 

Source
pub trait AsValidateErrorStore {
    // Required method
    fn as_validate_store(&self) -> ValidateErrorStore;

    // Provided methods
    fn as_validate_error_collector(&self) -> ValidateErrorCollector { ... }
    fn as_original_message_vec(&self) -> Vec<String> { ... }
    fn as_original_message(&self) -> Arc<[String]> { ... }
}
Expand description

A trait that provides an abstraction to interact with and retrieve validation-related data such as error stores, error collectors, and original messages.

Implementors of this trait are expected to provide a mechanism to convert or extract their underlying structure into a ValidateErrorStore, which can then be used to access detailed validation-related data.

This trait also provides default implementations for retrieving validation error collectors and original messages, relying on the ValidateErrorStore for such operations.

Required Methods§

Provided Methods§

Implementations on Foreign Types§

Source§

impl<T, E> AsValidateErrorStore for Result<T, E>
where for<'a> &'a E: Into<ValidateErrorStore>,

Implementors§