pub struct Annotation {
pub id: String,
pub text: String,
pub author: String,
pub timestamp: String,
pub provenance: Option<ProvenanceRef>,
}Expand description
A lightweight annotation on a finding — like a comment on a line of code.
Fields§
§id: StringContent-addressed ID (ann_{hash}).
text: StringThe annotation text.
Who wrote it (ORCID preferred).
timestamp: StringWhen it was created (RFC 3339).
provenance: Option<ProvenanceRef>Phase β (v0.6): structured provenance for the annotation. Optional. When present, encodes which paper / preprint / extract span produced this note. Reviewers query by these fields: “show every annotation from PMID 25378646” works because the identifier is structure, not prose.
Trait Implementations§
Source§impl Clone for Annotation
impl Clone for Annotation
Source§fn clone(&self) -> Annotation
fn clone(&self) -> Annotation
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 Annotation
impl Debug for Annotation
Source§impl<'de> Deserialize<'de> for Annotation
impl<'de> Deserialize<'de> for Annotation
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
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