pub struct AddMemoryRelation {
pub memory_id: String,
pub relation: String,
pub direction: GraphDirection,
pub metadata: HashMap<String, Value>,
}Expand description
Optional relation spec used by add-memory request.
Fields§
§memory_id: StringExisting memory id to connect with the newly added memory.
relation: String§direction: GraphDirectionEdge direction relative to the newly added memory node.
outbound: new -> memory_id; inbound: memory_id -> new; both: write both edges.
metadata: HashMap<String, Value>Trait Implementations§
Source§impl Clone for AddMemoryRelation
impl Clone for AddMemoryRelation
Source§fn clone(&self) -> AddMemoryRelation
fn clone(&self) -> AddMemoryRelation
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 AddMemoryRelation
impl Debug for AddMemoryRelation
Source§impl<'de> Deserialize<'de> for AddMemoryRelation
impl<'de> Deserialize<'de> for AddMemoryRelation
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 AddMemoryRelation
impl RefUnwindSafe for AddMemoryRelation
impl Send for AddMemoryRelation
impl Sync for AddMemoryRelation
impl Unpin for AddMemoryRelation
impl UnsafeUnpin for AddMemoryRelation
impl UnwindSafe for AddMemoryRelation
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