pub struct OutputCandidate {
pub source_attempt_id: AttemptId,
pub candidate_content_ref: ContentRef,
pub text: String,
pub privacy: PrivacyClass,
}Expand description
Holds output candidate application-layer state or configuration. Use it with the documented coordinator methods; run, journal, event, provider, or port effects are called out on those methods rather than on construction.
Fields§
§source_attempt_id: AttemptIdStable source attempt id used for typed lineage, lookup, or dedupe.
candidate_content_ref: ContentRefContent reference for the candidate value being validated.
text: StringText used by this record or request.
privacy: PrivacyClassPrivacy class used for projection, telemetry, and raw-content access decisions.
Implementations§
Source§impl OutputCandidate
impl OutputCandidate
Sourcepub fn new(
source_attempt_id: AttemptId,
candidate_content_ref: ContentRef,
text: impl Into<String>,
) -> Self
pub fn new( source_attempt_id: AttemptId, candidate_content_ref: ContentRef, text: impl Into<String>, ) -> Self
Creates a new application::validation value with explicit caller-provided inputs. This constructor is data-only and performs no I/O or external side effects.
Sourcepub fn with_privacy(self, privacy: PrivacyClass) -> Self
pub fn with_privacy(self, privacy: PrivacyClass) -> Self
Returns this value with its privacy setting replaced. The method follows builder-style data construction and does not execute external work.
Trait Implementations§
Source§impl Clone for OutputCandidate
impl Clone for OutputCandidate
Source§fn clone(&self) -> OutputCandidate
fn clone(&self) -> OutputCandidate
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for OutputCandidate
impl Debug for OutputCandidate
Source§impl<'de> Deserialize<'de> for OutputCandidate
impl<'de> Deserialize<'de> for OutputCandidate
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>,
impl Eq for OutputCandidate
Source§impl PartialEq for OutputCandidate
impl PartialEq for OutputCandidate
Source§fn eq(&self, other: &OutputCandidate) -> bool
fn eq(&self, other: &OutputCandidate) -> bool
self and other values to be equal, and is used by ==.