pub struct NodeResponse {Show 20 fields
pub id: String,
pub kind: String,
pub title: String,
pub body: String,
pub metadata: HashMap<String, String>,
pub tags: Vec<String>,
pub importance: f32,
pub source_agent: String,
pub source_session: Option<String>,
pub source_channel: Option<String>,
pub access_count: u64,
pub created_at: Option<Timestamp>,
pub updated_at: Option<Timestamp>,
pub has_embedding: bool,
pub edge_count: u32,
pub last_accessed_at: Option<Timestamp>,
pub valid_from: Option<Timestamp>,
pub valid_until: Option<Timestamp>,
pub expires_at: Option<Timestamp>,
pub embedding_model: Option<String>,
}Fields§
§id: String§kind: String§title: String§body: String§metadata: HashMap<String, String>§importance: f32§source_agent: String§source_session: Option<String>§source_channel: Option<String>§access_count: u64§created_at: Option<Timestamp>§updated_at: Option<Timestamp>§has_embedding: bool§edge_count: u32Total connected edges
last_accessed_at: Option<Timestamp>Last time returned in search/briefing
valid_from: Option<Timestamp>§valid_until: Option<Timestamp>§expires_at: Option<Timestamp>§embedding_model: Option<String>Implementations§
Source§impl NodeResponse
impl NodeResponse
Sourcepub fn source_session(&self) -> &str
pub fn source_session(&self) -> &str
Returns the value of source_session, or the default value if source_session is unset.
Sourcepub fn source_channel(&self) -> &str
pub fn source_channel(&self) -> &str
Returns the value of source_channel, or the default value if source_channel is unset.
Sourcepub fn embedding_model(&self) -> &str
pub fn embedding_model(&self) -> &str
Returns the value of embedding_model, or the default value if embedding_model is unset.
Trait Implementations§
Source§impl Clone for NodeResponse
impl Clone for NodeResponse
Source§fn clone(&self) -> NodeResponse
fn clone(&self) -> NodeResponse
Returns a duplicate of the value. Read more
1.0.0 · 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 NodeResponse
impl Debug for NodeResponse
Source§impl Default for NodeResponse
impl Default for NodeResponse
Source§fn default() -> NodeResponse
fn default() -> NodeResponse
Returns the “default value” for a type. Read more
Source§impl Message for NodeResponse
impl Message for NodeResponse
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Returns the encoded length of the message without a length delimiter.
Source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
Encodes the message to a buffer. Read more
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Encodes the message to a newly allocated buffer.
Source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
Encodes the message with a length-delimiter to a buffer. Read more
Source§fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Encodes the message with a length-delimiter to a newly allocated buffer.
Source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Decodes an instance of the message from a buffer. Read more
Source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Decodes a length-delimited instance of the message from the buffer.
Source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
Decodes an instance of the message from a buffer, and merges it into
self. Read moreSource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
Decodes a length-delimited instance of the message from buffer, and
merges it into
self.Source§impl PartialEq for NodeResponse
impl PartialEq for NodeResponse
impl StructuralPartialEq for NodeResponse
Auto Trait Implementations§
impl Freeze for NodeResponse
impl RefUnwindSafe for NodeResponse
impl Send for NodeResponse
impl Sync for NodeResponse
impl Unpin for NodeResponse
impl UnsafeUnpin for NodeResponse
impl UnwindSafe for NodeResponse
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,
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> 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