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

Method remaining_attrs

validify_derive/src/fields.rs:304–310  ·  view source on GitHub ↗

Return all the field's attributes that are unrelated to validify and serde

(&self)

Source from the content-addressed store, hash-verified

302
303 /// Return all the field's attributes that are unrelated to validify and serde
304 pub fn remaining_attrs(&self) -> Vec<&syn::Attribute> {
305 self.field
306 .attrs
307 .iter()
308 .filter(|attr| !validify_attr_check(attr) && !attr.path().is_ident("serde"))
309 .collect()
310 }
311
312 /// Return all the field's attributes related to `serde`
313 pub fn serde_attrs(&self) -> Vec<&syn::Attribute> {

Callers 1

map_payload_fieldsFunction · 0.80

Calls 2

validify_attr_checkFunction · 0.85
collectMethod · 0.80

Tested by

no test coverage detected