pub struct GraphState {
pub nodes: Vec<SerializedNode>,
pub edges: Vec<SerializedEdge>,
pub agents: Vec<SerializedAgent>,
pub metadata: SessionMetadata,
}Expand description
Serializable snapshot of the knowledge graph and agent state.
Fields§
§nodes: Vec<SerializedNode>§edges: Vec<SerializedEdge>§agents: Vec<SerializedAgent>§metadata: SessionMetadataTrait Implementations§
Source§impl Clone for GraphState
impl Clone for GraphState
Source§fn clone(&self) -> GraphState
fn clone(&self) -> GraphState
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 GraphState
impl Debug for GraphState
Source§impl<'de> Deserialize<'de> for GraphState
impl<'de> Deserialize<'de> for GraphState
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 GraphState
impl RefUnwindSafe for GraphState
impl Send for GraphState
impl Sync for GraphState
impl Unpin for GraphState
impl UnwindSafe for GraphState
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