pub struct ProvenanceConfig {
pub generation_id: Option<String>,
pub mark_needs_review: bool,
pub review_threshold: f32,
pub min_confidence: f32,
}Expand description
@acp:summary “Configuration for RFC-0003 provenance marker generation”
Fields§
§generation_id: Option<String>Generation batch ID (e.g., “gen-20251222-123456-abc”)
mark_needs_review: boolWhether to mark all generated annotations as needing review
review_threshold: f32Confidence threshold below which annotations are flagged for review
min_confidence: f32Minimum confidence required to emit an annotation
Implementations§
Source§impl ProvenanceConfig
impl ProvenanceConfig
Sourcepub fn with_generation_id(self, id: impl Into<String>) -> Self
pub fn with_generation_id(self, id: impl Into<String>) -> Self
@acp:summary “Sets the generation ID”
Sourcepub fn with_needs_review(self, needs_review: bool) -> Self
pub fn with_needs_review(self, needs_review: bool) -> Self
@acp:summary “Sets whether to mark annotations as needing review”
Sourcepub fn with_review_threshold(self, threshold: f32) -> Self
pub fn with_review_threshold(self, threshold: f32) -> Self
@acp:summary “Sets the review threshold for low-confidence annotations”
Sourcepub fn with_min_confidence(self, confidence: f32) -> Self
pub fn with_min_confidence(self, confidence: f32) -> Self
@acp:summary “Sets the minimum confidence required to emit annotations”
Trait Implementations§
Source§impl Clone for ProvenanceConfig
impl Clone for ProvenanceConfig
Source§fn clone(&self) -> ProvenanceConfig
fn clone(&self) -> ProvenanceConfig
Returns a duplicate of the value. Read more
1.0.0 · 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 ProvenanceConfig
impl Debug for ProvenanceConfig
Auto Trait Implementations§
impl Freeze for ProvenanceConfig
impl RefUnwindSafe for ProvenanceConfig
impl Send for ProvenanceConfig
impl Sync for ProvenanceConfig
impl Unpin for ProvenanceConfig
impl UnwindSafe for ProvenanceConfig
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more