pub enum Annotation {
Compact {
name: FQName,
text: Option<String>,
},
Structured {
name: FQName,
args: Vec<AnnotationArgument>,
},
LinkedCompact {
authored_name: String,
declaration: NodeUri,
},
LinkedStructured {
authored_name: String,
declaration: NodeUri,
args: Vec<AnnotationArgument>,
},
PendingCompact {
authored_name: String,
},
PendingStructured {
authored_name: String,
args: Vec<AnnotationArgument>,
},
}Expand description
An annotation on a type, value or module specification.
Variants§
Compact
The compact spelling: a name, and optionally the free text after it.
Structured
The structured spelling: a name and its arguments, written only when it has some.
LinkedCompact
A 4.1.0 compact entry resolved through annotations.@context.
LinkedStructured
A 4.1.0 structured entry with preserved positional and named arguments.
Fields
The authored alias or compact IRI.
§
args: Vec<AnnotationArgument>The existing argument vocabulary.
PendingCompact
An alias awaiting the enclosing document’s context during whole-file decode.
Fields
PendingStructured
A structured alias awaiting the enclosing document’s context.
Trait Implementations§
Source§impl Clone for Annotation
impl Clone for Annotation
Source§impl Debug for Annotation
impl Debug for Annotation
Source§impl PartialEq for Annotation
impl PartialEq for Annotation
Source§impl Serialize for Annotation
impl Serialize for Annotation
impl StructuralPartialEq for Annotation
Auto Trait Implementations§
impl Freeze for Annotation
impl RefUnwindSafe for Annotation
impl Send for Annotation
impl Sync for Annotation
impl Unpin for Annotation
impl UnsafeUnpin for Annotation
impl UnwindSafe for Annotation
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