pub struct MetadataAnnotation {
pub name: String,
pub type_name: Option<String>,
pub body: ConnectBody,
pub head_span: Option<Span>,
pub type_span: Option<Span>,
}Expand description
Metadata annotation on usage: @ Name (: Type)? MetadataBody (e.g. @Security; or @Safety{isMandatory = true;}).
Fields§
§name: String§type_name: Option<String>§body: ConnectBody§head_span: Option<Span>§type_span: Option<Span>Trait Implementations§
Source§impl Clone for MetadataAnnotation
impl Clone for MetadataAnnotation
Source§fn clone(&self) -> MetadataAnnotation
fn clone(&self) -> MetadataAnnotation
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 MetadataAnnotation
impl Debug for MetadataAnnotation
impl Eq for MetadataAnnotation
Source§impl PartialEq for MetadataAnnotation
impl PartialEq for MetadataAnnotation
Source§fn eq(&self, other: &MetadataAnnotation) -> bool
fn eq(&self, other: &MetadataAnnotation) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for MetadataAnnotation
Auto Trait Implementations§
impl Freeze for MetadataAnnotation
impl RefUnwindSafe for MetadataAnnotation
impl Send for MetadataAnnotation
impl Sync for MetadataAnnotation
impl Unpin for MetadataAnnotation
impl UnsafeUnpin for MetadataAnnotation
impl UnwindSafe for MetadataAnnotation
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