pub struct AnnotationElement {
pub name: String,
pub type: String,
pub default_value: Option<Expression>,
pub span: Range<usize>,
}Expand description
Annotation element
Fields§
§name: StringElement name
type: StringElement type
default_value: Option<Expression>Default value (optional)
span: Range<usize>Source span
Trait Implementations§
Source§impl Clone for AnnotationElement
impl Clone for AnnotationElement
Source§fn clone(&self) -> AnnotationElement
fn clone(&self) -> AnnotationElement
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 AnnotationElement
impl Debug for AnnotationElement
Source§impl<'de> Deserialize<'de> for AnnotationElement
impl<'de> Deserialize<'de> for AnnotationElement
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for AnnotationElement
impl PartialEq for AnnotationElement
Source§impl Serialize for AnnotationElement
impl Serialize 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