pub struct TypeAdditions {
pub derives: Vec<TokenStream>,
pub attributes: TokenStream,
}Expand description
What an integration adds to one generated type.
Fields§
§derives: Vec<TokenStream>The derives, each a path (e.g. serde::Deserialize).
attributes: TokenStreamThe attributes, written after the derives.
Trait Implementations§
Auto Trait Implementations§
impl !Send for TypeAdditions
impl !Sync for TypeAdditions
impl Forget for TypeAdditions
impl Freeze for TypeAdditions
impl Move for TypeAdditions
impl RefUnwindSafe for TypeAdditions
impl Unpin for TypeAdditions
impl UnsafeUnpin for TypeAdditions
impl UnwindSafe for TypeAdditions
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