MCPcopy Create free account
hub / github.com/biblius/validify / is_nested_validify

Method is_nested_validify

validify_derive/src/fields.rs:349–354  ·  view source on GitHub ↗

Returns true if the field is annotated with `#[validify]`

(&self)

Source from the content-addressed store, hash-verified

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 {

Callers 3

map_payload_fieldsFunction · 0.80
map_from_fieldsFunction · 0.80
map_into_fieldsFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected