Skip to main content

OutputDeliveryCandidate

Struct OutputDeliveryCandidate 

Source
pub struct OutputDeliveryCandidate {
    pub destination: DestinationRef,
    pub preferred_sink_ref: Option<OutputSinkRef>,
    pub delivery_kind: OutputDeliveryKind,
    pub source_message_id: Option<MessageId>,
    pub validated_output_id: Option<ValidatedOutputId>,
    pub content_refs: Vec<ContentRef>,
    pub redacted_summary: String,
    pub raw_content: Option<String>,
    pub requested_content_mode: Option<OutputContentMode>,
    pub privacy: PrivacyClass,
    pub retention: RetentionClass,
    pub policy: OutputDeliveryPolicy,
}
Expand description

Holds output delivery 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§

§destination: DestinationRef

Destination label or ref for this item; it is metadata and does not deliver content by itself.

§preferred_sink_ref: Option<OutputSinkRef>

Typed preferred sink ref reference. Resolving or executing it is a separate policy-gated step.

§delivery_kind: OutputDeliveryKind

Output delivery setting or policy. Delivery coordinators use it to decide sink mode, dedupe, and required evidence.

§source_message_id: Option<MessageId>

Stable source message id used for typed lineage, lookup, or dedupe.

§validated_output_id: Option<ValidatedOutputId>

Stable validated output id used for typed lineage, lookup, or dedupe.

§content_refs: Vec<ContentRef>

Content references associated with this record; resolving them is a separate policy-gated step.

§redacted_summary: String

Redacted human-readable summary safe for events, telemetry, and logs.

§raw_content: Option<String>

Raw content or raw-content control for this value. Use it only when policy explicitly allows raw content capture or delivery.

§requested_content_mode: Option<OutputContentMode>

Optional requested content mode value. When absent, callers should use the documented default or skip that optional behavior.

§privacy: PrivacyClass

Privacy class used for projection, telemetry, and raw-content access decisions.

§retention: RetentionClass

Retention class used by hosts and sinks when storing or exporting this item.

§policy: OutputDeliveryPolicy

Policy used by this record or request.

Implementations§

Source§

impl OutputDeliveryCandidate

Source

pub fn final_message( destination: DestinationRef, sink_ref: OutputSinkRef, content_ref: ContentRef, policy_ref: PolicyRef, ) -> Self

Builds the final message value. This is data construction and performs no I/O, journal append, event publication, or process work.

Trait Implementations§

Source§

impl Clone for OutputDeliveryCandidate

Source§

fn clone(&self) -> OutputDeliveryCandidate

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for OutputDeliveryCandidate

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl PartialEq for OutputDeliveryCandidate

Source§

fn eq(&self, other: &OutputDeliveryCandidate) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Eq for OutputDeliveryCandidate

Source§

impl StructuralPartialEq for OutputDeliveryCandidate

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.