pub struct SavvyStruct {
pub docs: Vec<String>,
pub attrs: Vec<Attribute>,
pub ty: Ident,
}Fields§
§docs: Vec<String>Doc comments
attrs: Vec<Attribute>Attributes except for #[savvy]
ty: IdentOriginal struct name
Implementations§
Source§impl SavvyStruct
impl SavvyStruct
pub fn new(orig: &ItemStruct) -> Result<Self>
pub fn generate_try_from_impls(&self) -> Vec<ItemImpl>
Auto Trait Implementations§
impl Freeze for SavvyStruct
impl RefUnwindSafe for SavvyStruct
impl !Send for SavvyStruct
impl !Sync for SavvyStruct
impl Unpin for SavvyStruct
impl UnwindSafe for SavvyStruct
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