pub struct TitleContext {
pub language: Option<String>,
pub extension: Option<String>,
pub filename: Option<String>,
pub prompt_prefix: Option<String>,
pub suggested_mode: Option<DictationMode>,
}Expand description
Result of analyzing a window title.
Fields§
§language: Option<String>Detected programming language (e.g. “Rust”, “Python”)
extension: Option<String>File extension that was matched (e.g. “rs”, “py”)
filename: Option<String>Extracted filename from the title (e.g. “auth.rs”)
prompt_prefix: Option<String>Auto-generated prompt prefix for Whisper (e.g. “Rust programming.”)
suggested_mode: Option<DictationMode>Suggested dictation mode based on detected context
Trait Implementations§
Source§impl Clone for TitleContext
impl Clone for TitleContext
Source§fn clone(&self) -> TitleContext
fn clone(&self) -> TitleContext
Returns a duplicate of the value. Read more
1.0.0 · 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 TitleContext
impl Debug for TitleContext
Source§impl PartialEq for TitleContext
impl PartialEq for TitleContext
impl StructuralPartialEq for TitleContext
Auto Trait Implementations§
impl Freeze for TitleContext
impl RefUnwindSafe for TitleContext
impl Send for TitleContext
impl Sync for TitleContext
impl Unpin for TitleContext
impl UnsafeUnpin for TitleContext
impl UnwindSafe for TitleContext
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