pub struct Input {
pub name: String,
pub value: Value,
pub data_type: String,
pub schema_version: String,
}Expand description
Input parameter to an AI decision point
Represents a single input parameter passed to an AI function or model. Inputs are captured with their name, value, and type information for complete reproducibility.
§Examples
use briefcase_core::models::Input;
use serde_json::json;
let input = Input::new("user_query", json!("Hello world"), "string");
assert_eq!(input.name, "user_query");
assert_eq!(input.data_type, "string");Fields§
§name: String§value: Value§data_type: String§schema_version: StringImplementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Input
impl<'de> Deserialize<'de> for Input
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
impl StructuralPartialEq for Input
Auto Trait Implementations§
impl Freeze for Input
impl RefUnwindSafe for Input
impl Send for Input
impl Sync for Input
impl Unpin for Input
impl UnwindSafe for Input
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