Struct Normalized Edits
Generated from cargo doc --no-deps -p nemo-relay-builtins -p nemo-relay-diagnostics -p nemo-relay-logging -p nemo-relay-plugin-host -p nemo-relay-codecs -p nemo-relay -p nemo-relay-runtime -p nemo-relay-model-pricing -p nemo-relay-resource-metrics -p nemo-relay-observability -p nemo-relay-adaptive -p nemo-relay-pii-redaction -p nemo-relay-ffi -p nemo-relay-types -p nemo-relay-plugin -p nemo-relay-worker-proto -p nemo-relay-worker.
pub struct NormalizedEdits<'a> {
pub baseline: &'a Value,
pub sanitized: &'a Value,
pub require_complete_output: bool,
}
A sanitized serialized annotation, with positions anchored to its baseline.
Both values use the codec’s normalized schema. baseline must come from decoding the supplied original payload with that same codec. Sanitizers must preserve array lengths and order: a removed array entry becomes null, while a removed object field is absent. Do not compact arrays before this handoff. Codecs must reject mismatched baselines and edits they cannot safely map. These coordinates apply only to this operation; they are not stable handles.
Fields
baseline: &'a Value
Original normalized annotation, before sanitization.
sanitized: &'a Value
Sanitized annotation, retaining original array slots.
require_complete_output: bool
Whether the policy covers output content or provider-specific output.
Set this even when no matching field exists in the first normalized result. A response codec must reject unmodeled alternatives it cannot cover. Request editing ignores this flag.
Trait Implementations
impl<'a> Clone for NormalizedEdits<'a>
impl<'a> Clone for NormalizedEdits<'a>
clone
fn clone(&self) -> NormalizedEdits<'a>
clone_from
fn clone_from(&mut self, source: &Self)
impl<'a> Debug for NormalizedEdits<'a>
impl<'a> Debug for NormalizedEdits<'a>
fmt
fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>
impl<'a> Copy for NormalizedEdits<'a>
impl<'a> Copy for NormalizedEdits<'a>