pub struct SerdeParser;Expand description
Parser for serde attributes from Rust struct/enum definitions and fields
Implementations§
Source§impl SerdeParser
impl SerdeParser
pub fn new() -> Self
Sourcepub fn parse_struct_serde_attrs(
&self,
attrs: &[Attribute],
) -> SerdeStructAttributes
pub fn parse_struct_serde_attrs( &self, attrs: &[Attribute], ) -> SerdeStructAttributes
Parse struct-level serde attributes (e.g., rename_all)
Sourcepub fn parse_field_serde_attrs(
&self,
attrs: &[Attribute],
) -> SerdeFieldAttributes
pub fn parse_field_serde_attrs( &self, attrs: &[Attribute], ) -> SerdeFieldAttributes
Parse field-level serde attributes (e.g., rename, skip)
Trait Implementations§
Source§impl Debug for SerdeParser
impl Debug for SerdeParser
Auto Trait Implementations§
impl Freeze for SerdeParser
impl RefUnwindSafe for SerdeParser
impl Send for SerdeParser
impl Sync for SerdeParser
impl Unpin for SerdeParser
impl UnwindSafe for SerdeParser
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more