pub struct FailureNarrativeGenerator { /* private fields */ }Expand description
Generator for failure narratives
Implementations§
Source§impl FailureNarrativeGenerator
impl FailureNarrativeGenerator
Sourcepub fn new(config: IntelligentBehaviorConfig) -> Self
pub fn new(config: IntelligentBehaviorConfig) -> Self
Create a new failure narrative generator
Sourcepub async fn generate_narrative(
&self,
context: &FailureContext,
) -> Result<FailureNarrative>
pub async fn generate_narrative( &self, context: &FailureContext, ) -> Result<FailureNarrative>
Generate a narrative explaining a failure
Auto Trait Implementations§
impl Freeze for FailureNarrativeGenerator
impl !RefUnwindSafe for FailureNarrativeGenerator
impl Send for FailureNarrativeGenerator
impl Sync for FailureNarrativeGenerator
impl Unpin for FailureNarrativeGenerator
impl UnsafeUnpin for FailureNarrativeGenerator
impl !UnwindSafe for FailureNarrativeGenerator
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