add tests

This commit is contained in:
gengteng
2023-09-28 23:59:42 +08:00
parent 9b28922201
commit e4f54a5cb9
2 changed files with 339 additions and 54 deletions

View File

@@ -159,14 +159,13 @@ impl<Arguments> ValidationContext<Arguments> {
/// # Arguments
///
/// `T`: data type to validate
/// `Self::A`: dependent arguments
/// * `T`: The data type to validate using arguments
///
pub trait Arguments<'a, T>
where
T: ValidateArgs<'a>,
{
/// Get dependent arguments
/// Get arguments from `self`
fn get(&'a self) -> T::Args;
}