pub struct ReflectDelta {
pub tier: Option<Tier>,
pub namespace: Option<String>,
pub title: Option<String>,
pub content: Option<String>,
pub tags: Option<Vec<String>>,
pub priority: Option<i32>,
pub confidence: Option<f64>,
pub metadata: Option<Value>,
}Expand description
Writable delta a pre_reflect hook may mutate before db::reflect
evaluates the depth-cap. Mirrors the user-controllable fields of
crate::db::ReflectInput — but as a JSON-friendly bag with every
field optional so a hook may return a partial diff (e.g. just
rewriting tags or priority) without echoing the whole input
back over stdio. Fields a pre_reflect hook may not safely
override (source_ids, agent_id) are intentionally absent here —
rewriting either would silently change the audit provenance of a
downstream refusal, which is the wrong shape for a hook contract.
Fields§
§tier: Option<Tier>§namespace: Option<String>§title: Option<String>§content: Option<String>§priority: Option<i32>§confidence: Option<f64>§metadata: Option<Value>Trait Implementations§
Source§impl Clone for ReflectDelta
impl Clone for ReflectDelta
Source§fn clone(&self) -> ReflectDelta
fn clone(&self) -> ReflectDelta
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 ReflectDelta
impl Debug for ReflectDelta
Source§impl Default for ReflectDelta
impl Default for ReflectDelta
Source§fn default() -> ReflectDelta
fn default() -> ReflectDelta
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ReflectDelta
impl<'de> Deserialize<'de> for ReflectDelta
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
Auto Trait Implementations§
impl Freeze for ReflectDelta
impl RefUnwindSafe for ReflectDelta
impl Send for ReflectDelta
impl Sync for ReflectDelta
impl Unpin for ReflectDelta
impl UnsafeUnpin for ReflectDelta
impl UnwindSafe for ReflectDelta
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
impl<T> ErasedDestructor for Twhere
T: 'static,
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