pub struct VoiceSpecGenerator;Expand description
Voice spec generator that creates OpenAPI specs from parsed commands
Implementations§
Source§impl VoiceSpecGenerator
impl VoiceSpecGenerator
Sourcepub async fn generate_spec(&self, parsed: &ParsedCommand) -> Result<OpenApiSpec>
pub async fn generate_spec(&self, parsed: &ParsedCommand) -> Result<OpenApiSpec>
Generate OpenAPI spec from a parsed command
Sourcepub async fn merge_spec(
&self,
existing: &OpenApiSpec,
parsed: &ParsedCommand,
) -> Result<OpenApiSpec>
pub async fn merge_spec( &self, existing: &OpenApiSpec, parsed: &ParsedCommand, ) -> Result<OpenApiSpec>
Generate OpenAPI spec by merging with existing spec (for conversational mode)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for VoiceSpecGenerator
impl RefUnwindSafe for VoiceSpecGenerator
impl Send for VoiceSpecGenerator
impl Sync for VoiceSpecGenerator
impl Unpin for VoiceSpecGenerator
impl UnsafeUnpin for VoiceSpecGenerator
impl UnwindSafe for VoiceSpecGenerator
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