pub struct ModelScenario { /* private fields */ }Expand description
Accumulates a scripted provider event sequence without network access.
Implementations§
Source§impl ModelScenario
impl ModelScenario
Sourcepub fn then(self, event: ModelStreamEvent) -> Self
pub fn then(self, event: ModelStreamEvent) -> Self
Appends a provider-neutral stream event.
Sourcepub fn response(self) -> Result<ModelResponse, ModelError>
pub fn response(self) -> Result<ModelResponse, ModelError>
Reconstructs the scenario’s canonical response.
§Errors
Returns ModelError if the scripted stream violates lifecycle or
content-block rules, or if it never produces a terminal response.
Trait Implementations§
Source§impl Clone for ModelScenario
impl Clone for ModelScenario
Source§fn clone(&self) -> ModelScenario
fn clone(&self) -> ModelScenario
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ModelScenario
impl Debug for ModelScenario
Source§impl Default for ModelScenario
impl Default for ModelScenario
Source§fn default() -> ModelScenario
fn default() -> ModelScenario
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ModelScenario
impl RefUnwindSafe for ModelScenario
impl Send for ModelScenario
impl Sync for ModelScenario
impl Unpin for ModelScenario
impl UnsafeUnpin for ModelScenario
impl UnwindSafe for ModelScenario
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