pub struct ReflectionOrigin {
pub memory_id: String,
pub peer_origin: Option<String>,
pub signing_agent: Option<String>,
pub original_depth: i32,
pub local_depth_at_arrival: Option<u32>,
pub is_reflection: bool,
}Expand description
v0.7.0 L2-2 — structured record returned by reflection_origin.
Mirrors the wire shape of the memory_reflection_origin MCP tool.
Fields§
§memory_id: StringThe id of the memory the record describes.
peer_origin: Option<String>sender_agent_id from the push envelope that delivered the row.
None for locally authored reflections (no peer_origin stamp).
signing_agent: Option<String>metadata.agent_id — the original signer (NHI). May differ from
peer_origin when an intermediate peer re-broadcasts a row it
itself received from upstream.
original_depth: i32reflection_depth the row carried in transit. Always populated
when the row is a reflection (depth > 0).
local_depth_at_arrival: Option<u32>Snapshot of the local effective_max_reflection_depth at the
moment this row was first imported. None when the row was
authored locally (no import event to anchor against).
is_reflection: booltrue if the row is a reflection (depth > 0) regardless of
import path; lets callers handle a non-reflection lookup with
a clean response shape rather than a 404.
Trait Implementations§
Source§impl Clone for ReflectionOrigin
impl Clone for ReflectionOrigin
Source§fn clone(&self) -> ReflectionOrigin
fn clone(&self) -> ReflectionOrigin
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 ReflectionOrigin
impl Debug for ReflectionOrigin
Source§impl<'de> Deserialize<'de> for ReflectionOrigin
impl<'de> Deserialize<'de> for ReflectionOrigin
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 ReflectionOrigin
Source§impl PartialEq for ReflectionOrigin
impl PartialEq for ReflectionOrigin
Source§fn eq(&self, other: &ReflectionOrigin) -> bool
fn eq(&self, other: &ReflectionOrigin) -> bool
self and other values to be equal, and is used by ==.Source§impl Serialize for ReflectionOrigin
impl Serialize for ReflectionOrigin
impl StructuralPartialEq for ReflectionOrigin
Auto Trait Implementations§
impl Freeze for ReflectionOrigin
impl RefUnwindSafe for ReflectionOrigin
impl Send for ReflectionOrigin
impl Sync for ReflectionOrigin
impl Unpin for ReflectionOrigin
impl UnsafeUnpin for ReflectionOrigin
impl UnwindSafe for ReflectionOrigin
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
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.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>
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>
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