Struct ai_agents::units::ScenarioUnit
source · pub struct ScenarioUnit { /* private fields */ }Implementations§
source§impl ScenarioUnit
impl ScenarioUnit
pub fn new(name: &str) -> Self
pub fn update_response_template<T: ToKeywordString>(&mut self)
pub fn set_scenario_template(&mut self, scenario: &str)
pub fn insert_context<T: Serialize>(&mut self, key: &str, value: T)
Trait Implementations§
source§impl Debug for ScenarioUnit
impl Debug for ScenarioUnit
source§impl Default for ScenarioUnit
impl Default for ScenarioUnit
source§fn default() -> ScenarioUnit
fn default() -> ScenarioUnit
Returns the “default value” for a type. Read more
source§impl UnitProcess for ScenarioUnit
impl UnitProcess for ScenarioUnit
Auto Trait Implementations§
impl Freeze for ScenarioUnit
impl RefUnwindSafe for ScenarioUnit
impl Send for ScenarioUnit
impl Sync for ScenarioUnit
impl Unpin for ScenarioUnit
impl UnwindSafe for ScenarioUnit
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