Returns true if the field is annotated with `#[validify]`
(&self)
| 347 | |
| 348 | /// Returns true if the field is annotated with `#[validify]` |
| 349 | pub fn is_nested_validify(&self) -> bool { |
| 350 | self.field |
| 351 | .attrs |
| 352 | .iter() |
| 353 | .any(|attr| attr.path().is_ident("validify") && attr.meta.require_path_only().is_ok()) |
| 354 | } |
| 355 | |
| 356 | /// Return either `field` or `ref field` for the arg in `if let Some(arg)`. |
| 357 | fn option_self_tokens_validation(&self) -> proc_macro2::TokenStream { |
no outgoing calls
no test coverage detected