#[non_exhaustive]pub struct MemoryLinkInput {
pub org: Option<String>,
pub namespace: Option<String>,
pub from_key: String,
pub to_key: String,
pub relation: Option<String>,
pub label: Option<String>,
pub explanation: Option<String>,
pub evidence: Option<Vec<String>>,
pub confidence: Option<f64>,
pub run_id: Option<String>,
pub weight: Option<f64>,
pub tombstone: Option<bool>,
}Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.org: Option<String>§namespace: Option<String>§from_key: String§to_key: String§relation: Option<String>§label: Option<String>§explanation: Option<String>§evidence: Option<Vec<String>>§confidence: Option<f64>§run_id: Option<String>§weight: Option<f64>§tombstone: Option<bool>Implementations§
Source§impl MemoryLinkInput
impl MemoryLinkInput
pub fn new(from_key: impl Into<String>, to_key: impl Into<String>) -> Self
pub fn org(self, org: impl Into<String>) -> Self
pub fn namespace(self, namespace: impl Into<String>) -> Self
pub fn relation(self, relation: impl Into<String>) -> Self
pub fn label(self, label: impl Into<String>) -> Self
pub fn explanation(self, explanation: impl Into<String>) -> Self
pub fn evidence( self, evidence: impl IntoIterator<Item = impl Into<String>>, ) -> Self
pub fn confidence(self, confidence: f64) -> Self
pub fn run_id(self, run_id: impl Into<String>) -> Self
pub fn weight(self, weight: f64) -> Self
pub fn tombstone(self, tombstone: bool) -> Self
pub async fn send( self, client: &Client, options: CallOptions, ) -> Result<CallResult<MemoryLinkOutput>, CallFailure>
Trait Implementations§
Source§impl Clone for MemoryLinkInput
impl Clone for MemoryLinkInput
Source§impl Debug for MemoryLinkInput
impl Debug for MemoryLinkInput
Source§impl<'de> Deserialize<'de> for MemoryLinkInput
impl<'de> Deserialize<'de> for MemoryLinkInput
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 MemoryLinkInput
impl PartialEq for MemoryLinkInput
Source§impl Serialize for MemoryLinkInput
impl Serialize for MemoryLinkInput
impl StructuralPartialEq for MemoryLinkInput
Auto Trait Implementations§
impl Forget for MemoryLinkInput
impl Freeze for MemoryLinkInput
impl Move for MemoryLinkInput
impl RefUnwindSafe for MemoryLinkInput
impl Send for MemoryLinkInput
impl Sync for MemoryLinkInput
impl Unpin for MemoryLinkInput
impl UnsafeUnpin for MemoryLinkInput
impl UnwindSafe for MemoryLinkInput
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