pub struct HeddleNote {
pub change_id: String,
pub agent: Option<NoteAgent>,
pub confidence: Option<f32>,
pub status: String,
pub omitted_annotations_breakdown: Option<OmittedBreakdown>,
pub signal_counts: Option<SignalCounts>,
pub attribution: Option<NoteAttribution>,
}Expand description
JSON payload stored inside each note blob.
Fields§
§change_id: StringThe heddle change_id this commit corresponds to.
agent: Option<NoteAgent>§confidence: Option<f32>§status: StringEither “draft” or “published”.
omitted_annotations_breakdown: Option<OmittedBreakdown>Per-scope counts of annotations dropped at export because their
visibility exceeded the export’s audience tier. Populated when the
caller exports with --notes and --audience.
signal_counts: Option<SignalCounts>Per-module signal counts on the state at export time. Read-only metadata for downstream tooling.
attribution: Option<NoteAttribution>Author + agent attribution rolled up into a richer shape than the commit’s own author signature can carry.
Implementations§
Source§impl HeddleNote
impl HeddleNote
Sourcepub fn from_state(state: &State) -> Self
pub fn from_state(state: &State) -> Self
Construct a note from a heddle state (the form written on export).
Sourcepub fn with_omitted_breakdown(self, breakdown: OmittedBreakdown) -> Self
pub fn with_omitted_breakdown(self, breakdown: OmittedBreakdown) -> Self
R6 builder: set the per-scope omitted-annotation breakdown.
Sourcepub fn with_signal_counts(self, counts: SignalCounts) -> Self
pub fn with_signal_counts(self, counts: SignalCounts) -> Self
R6 builder: set the per-module signal counts.
Sourcepub fn with_attribution(self, attribution: NoteAttribution) -> Self
pub fn with_attribution(self, attribution: NoteAttribution) -> Self
R6 builder: set richer attribution (principal + agent).
pub fn to_json_bytes(&self) -> GitResult<Vec<u8>>
pub fn from_json_bytes(bytes: &[u8]) -> GitResult<Self>
Trait Implementations§
Source§impl Clone for HeddleNote
impl Clone for HeddleNote
Source§fn clone(&self) -> HeddleNote
fn clone(&self) -> HeddleNote
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 HeddleNote
impl Debug for HeddleNote
Source§impl<'de> Deserialize<'de> for HeddleNote
impl<'de> Deserialize<'de> for HeddleNote
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 HeddleNote
impl PartialEq for HeddleNote
Source§fn eq(&self, other: &HeddleNote) -> bool
fn eq(&self, other: &HeddleNote) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for HeddleNote
impl Serialize for HeddleNote
impl StructuralPartialEq for HeddleNote
Auto Trait Implementations§
impl Freeze for HeddleNote
impl RefUnwindSafe for HeddleNote
impl Send for HeddleNote
impl Sync for HeddleNote
impl Unpin for HeddleNote
impl UnsafeUnpin for HeddleNote
impl UnwindSafe for HeddleNote
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request