Skip to main content

PromptSection

Trait PromptSection 

Source
pub trait PromptSection: Send + Sync {
    // Required methods
    fn name(&self) -> &str;
    fn stability(&self) -> PromptStability;
    fn render<'life0, 'life1, 'async_trait>(
        &'life0 self,
        _ctx: &'life1 (),
    ) -> Pin<Box<dyn Future<Output = String> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
}

Required Methods§

Source

fn name(&self) -> &str

Source

fn stability(&self) -> PromptStability

Source

fn render<'life0, 'life1, 'async_trait>( &'life0 self, _ctx: &'life1 (), ) -> Pin<Box<dyn Future<Output = String> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Trait Implementations§

Source§

impl PromptSection for Box<dyn PromptSection>

Source§

fn name(&self) -> &str

Source§

fn stability(&self) -> PromptStability

Source§

fn render<'life0, 'life1, 'async_trait>( &'life0 self, ctx: &'life1 (), ) -> Pin<Box<dyn Future<Output = String> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Implementations on Foreign Types§

Source§

impl PromptSection for Box<dyn PromptSection>

Source§

fn name(&self) -> &str

Source§

fn stability(&self) -> PromptStability

Source§

fn render<'life0, 'life1, 'async_trait>( &'life0 self, ctx: &'life1 (), ) -> Pin<Box<dyn Future<Output = String> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Implementors§