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

Method serde_attrs

validify_derive/src/fields.rs:313–319  ·  view source on GitHub ↗

Return all the field's attributes related to `serde`

(&self)

Source from the content-addressed store, hash-verified

311
312 /// Return all the field's attributes related to `serde`
313 pub fn serde_attrs(&self) -> Vec<&syn::Attribute> {
314 self.field
315 .attrs
316 .iter()
317 .filter(|attr| attr.path().is_ident("serde"))
318 .collect()
319 }
320
321 // ASSERTION
322

Callers 1

map_payload_fieldsFunction · 0.80

Calls 1

collectMethod · 0.80

Tested by

no test coverage detected