pub struct LinkRequest {
pub source: WireMemoryId,
pub target: WireMemoryId,
pub kind: EdgeKindWire,
pub weight: f32,
pub request_id: WireUuid,
pub txn_id: Option<WireUuid>,
pub act_as: Option<ActAs>,
}Expand description
LINK (0x0025). Creates (or reweights) an edge between two memories.
Fields§
§source: WireMemoryId§target: WireMemoryId§kind: EdgeKindWire§weight: f32[0, 1] for most kinds; [-1, 1] for Contradicts.
request_id: WireUuid§txn_id: Option<WireUuid>§act_as: Option<ActAs>Effective identity this link runs as. None (omitted on the wire)
means the op runs as the connection’s own key-bound identity.
Trait Implementations§
Source§impl Clone for LinkRequest
impl Clone for LinkRequest
Source§impl Debug for LinkRequest
impl Debug for LinkRequest
Source§impl<'de> Deserialize<'de> for LinkRequest
impl<'de> Deserialize<'de> for LinkRequest
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
Source§impl PartialEq for LinkRequest
impl PartialEq for LinkRequest
Source§impl Serialize for LinkRequest
impl Serialize for LinkRequest
impl StructuralPartialEq for LinkRequest
Auto Trait Implementations§
impl Freeze for LinkRequest
impl RefUnwindSafe for LinkRequest
impl Send for LinkRequest
impl Sync for LinkRequest
impl Unpin for LinkRequest
impl UnsafeUnpin for LinkRequest
impl UnwindSafe for LinkRequest
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