pub struct ContextUpdateItem {
pub interaction_type: String,
pub content: HashMap<String, String>,
pub entities: Vec<EntityItem>,
pub relations: Vec<RelationItem>,
pub code_reference: Option<CodeReference>,
pub derived_from: Vec<String>,
}Expand description
A single context update item accepted by the bulk-update tool.
Fields§
§interaction_type: StringInteraction type discriminator (e.g. "qa", "decision_made").
content: HashMap<String, String>Key-value content fields for the interaction.
entities: Vec<EntityItem>Named entities mentioned in this update. Required by the canonical write path so the entity graph is never silently empty for MCP-driven writes.
relations: Vec<RelationItem>Relations between the entities listed above. Both endpoints must
appear in entities; the canonical impl rejects dangling
references and self-relations.
code_reference: Option<CodeReference>Optional code reference attached to the update.
derived_from: Vec<String>Captured messages the update was drawn from (message:<seq>).
Trait Implementations§
Source§impl Clone for ContextUpdateItem
impl Clone for ContextUpdateItem
Source§impl Debug for ContextUpdateItem
impl Debug for ContextUpdateItem
Source§impl<'de> Deserialize<'de> for ContextUpdateItem
impl<'de> Deserialize<'de> for ContextUpdateItem
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
Source§impl JsonSchema for ContextUpdateItem
impl JsonSchema for ContextUpdateItem
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreAuto Trait Implementations§
impl Freeze for ContextUpdateItem
impl RefUnwindSafe for ContextUpdateItem
impl Send for ContextUpdateItem
impl Sync for ContextUpdateItem
impl Unpin for ContextUpdateItem
impl UnsafeUnpin for ContextUpdateItem
impl UnwindSafe for ContextUpdateItem
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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>,
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 moreSource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request