pub struct Annotation {
pub label: Option<String>,
pub message: Option<String>,
pub id: Option<String>,
pub description: Option<String>,
pub span: Span,
}Expand description
Business metadata attached to a sub-expression through a doc-comment.
Fields§
§label: Option<String>Short name shown in audit trees and explanations (@label).
message: Option<String>Longer explanation of what the expression checks (@message).
id: Option<String>Stable identifier for referring to this check from other systems (@id).
description: Option<String>Free text written before the first tag.
span: SpanByte span of the comment(s) this annotation was read from.
Trait Implementations§
Source§impl Clone for Annotation
impl Clone for Annotation
Source§impl Debug for Annotation
impl Debug for Annotation
Source§impl Default for Annotation
impl Default 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