pub struct AnnotationElement {
pub doc: Doc,
pub type_: Type,
pub name: Ident,
pub default: Option<Expr>,
}Expand description
One element of an annotation type.
Fields§
§doc: DocDocumentation.
type_: TypeType.
name: IdentName.
default: Option<Expr>default value, when written.
Trait Implementations§
Source§impl Clone for AnnotationElement
impl Clone for AnnotationElement
Source§impl Debug for AnnotationElement
impl Debug for AnnotationElement
impl Eq for AnnotationElement
Source§impl PartialEq for AnnotationElement
impl PartialEq for AnnotationElement
impl StructuralPartialEq for AnnotationElement
Auto Trait Implementations§
impl Freeze for AnnotationElement
impl RefUnwindSafe for AnnotationElement
impl Send for AnnotationElement
impl Sync for AnnotationElement
impl Unpin for AnnotationElement
impl UnsafeUnpin for AnnotationElement
impl UnwindSafe for AnnotationElement
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