pub struct TypeHeader {
pub name: TypeIdentifier,
pub derive_attrs: Vec<DeriveAttribute>,
pub serde_attrs: Vec<SerdeAttribute>,
pub doc_comments: Option<DocComments>,
/* private fields */
}Fields§
§name: TypeIdentifier§derive_attrs: Vec<DeriveAttribute>§serde_attrs: Vec<SerdeAttribute>§doc_comments: Option<DocComments>Implementations§
Source§impl TypeHeader
impl TypeHeader
pub fn new( name: TypeIdentifier, doc_comments: Option<DocComments>, serde_attrs: Vec<SerdeAttribute>, derive_attrs: Vec<DeriveAttribute>, ) -> Self
Trait Implementations§
Source§impl Clone for TypeHeader
impl Clone for TypeHeader
Source§fn clone(&self) -> TypeHeader
fn clone(&self) -> TypeHeader
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TypeHeader
impl Debug for TypeHeader
Source§impl PartialEq for TypeHeader
impl PartialEq for TypeHeader
impl StructuralPartialEq for TypeHeader
Auto Trait Implementations§
impl Freeze for TypeHeader
impl RefUnwindSafe for TypeHeader
impl Send for TypeHeader
impl Sync for TypeHeader
impl Unpin for TypeHeader
impl UnwindSafe for TypeHeader
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