#[non_exhaustive]pub struct RunCompleteInput {Show 16 fields
pub org: Option<String>,
pub namespace: Option<String>,
pub user_id: Option<String>,
pub session_id: Option<String>,
pub run_id: String,
pub status: RunCompleteInputStatus,
pub final_response: Option<String>,
pub confidence: Option<f64>,
pub memories_used: Option<Vec<String>>,
pub recalled_keys: Option<Vec<String>>,
pub outcome: Option<RunCompleteInputOutcome>,
pub weight: Option<Integer>,
pub duration_ms: Option<Integer>,
pub metadata: Option<HashMap<String, Value>>,
pub reflection: Option<Option<RunReflection>>,
pub retain: Option<RunCompleteInputRetain>,
}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>§user_id: Option<String>§session_id: Option<String>§run_id: String§status: RunCompleteInputStatus§final_response: Option<String>§confidence: Option<f64>§memories_used: Option<Vec<String>>§recalled_keys: Option<Vec<String>>§outcome: Option<RunCompleteInputOutcome>§weight: Option<Integer>§duration_ms: Option<Integer>§metadata: Option<HashMap<String, Value>>§reflection: Option<Option<RunReflection>>§retain: Option<RunCompleteInputRetain>Implementations§
Source§impl RunCompleteInput
impl RunCompleteInput
pub fn new(run_id: impl Into<String>, status: RunCompleteInputStatus) -> Self
pub fn org(self, org: impl Into<String>) -> Self
pub fn namespace(self, namespace: impl Into<String>) -> Self
pub fn user_id(self, user_id: impl Into<String>) -> Self
pub fn session_id(self, session_id: impl Into<String>) -> Self
pub fn final_response(self, final_response: impl Into<String>) -> Self
pub fn confidence(self, confidence: f64) -> Self
pub fn memories_used( self, memories_used: impl IntoIterator<Item = impl Into<String>>, ) -> Self
pub fn recalled_keys( self, recalled_keys: impl IntoIterator<Item = impl Into<String>>, ) -> Self
pub fn outcome(self, outcome: RunCompleteInputOutcome) -> Self
pub fn weight(self, weight: impl Into<Integer>) -> Self
pub fn duration_ms(self, duration_ms: impl Into<Integer>) -> Self
pub fn metadata(self, metadata: HashMap<String, Value>) -> Self
pub fn reflection(self, reflection: RunReflection) -> Self
pub fn reflection_null(self) -> Self
pub fn retain(self, retain: RunCompleteInputRetain) -> Self
pub async fn send( self, client: &Client, options: CallOptions, ) -> Result<CallResult<RunCompleteOutput>, CallFailure>
Trait Implementations§
Source§impl Clone for RunCompleteInput
impl Clone for RunCompleteInput
Source§impl Debug for RunCompleteInput
impl Debug for RunCompleteInput
Source§impl<'de> Deserialize<'de> for RunCompleteInput
impl<'de> Deserialize<'de> for RunCompleteInput
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 RunCompleteInput
impl PartialEq for RunCompleteInput
Source§impl Serialize for RunCompleteInput
impl Serialize for RunCompleteInput
impl StructuralPartialEq for RunCompleteInput
Auto Trait Implementations§
impl Forget for RunCompleteInput
impl Freeze for RunCompleteInput
impl Move for RunCompleteInput
impl RefUnwindSafe for RunCompleteInput
impl Send for RunCompleteInput
impl Sync for RunCompleteInput
impl Unpin for RunCompleteInput
impl UnsafeUnpin for RunCompleteInput
impl UnwindSafe for RunCompleteInput
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