pub struct MemoryEdgeDto {
pub kind: &'static str,
pub direction: &'static str,
pub peer: String,
pub weight: f32,
pub created_at_unix_nanos: u64,
pub annotation: Option<String>,
}Expand description
One memory↔memory edge.
peer is a decimal string like memory_id, so it can be fed straight
back into /v1/memories/{id} or /v1/links without conversion.
Fields§
§kind: &'static strSnake-case kind name — the same vocabulary POST /v1/links accepts.
direction: &'static stroutgoing = this memory is the edge’s source.
peer: StringDecimal string of the memory at the other end.
weight: f32§created_at_unix_nanos: u64§annotation: Option<String>Trait Implementations§
Source§impl Debug for MemoryEdgeDto
impl Debug for MemoryEdgeDto
Source§impl From<MemoryEdgeWire> for MemoryEdgeDto
impl From<MemoryEdgeWire> for MemoryEdgeDto
Source§fn from(e: MemoryEdgeWire) -> Self
fn from(e: MemoryEdgeWire) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for MemoryEdgeDto
impl RefUnwindSafe for MemoryEdgeDto
impl Send for MemoryEdgeDto
impl Sync for MemoryEdgeDto
impl Unpin for MemoryEdgeDto
impl UnsafeUnpin for MemoryEdgeDto
impl UnwindSafe for MemoryEdgeDto
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