pub struct WhisperCppConfig {
pub model: WhisperCppModel,
pub language: Option<String>,
pub translate: bool,
pub threads: Option<usize>,
}Expand description
Data type for whisper cpp config.
Fields§
§model: WhisperCppModelThe model value.
language: Option<String>Language tag for this value.
translate: boolThe translate value.
threads: Option<usize>The threads value.
Trait Implementations§
Source§impl Clone for WhisperCppConfig
impl Clone for WhisperCppConfig
Source§fn clone(&self) -> WhisperCppConfig
fn clone(&self) -> WhisperCppConfig
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 WhisperCppConfig
impl Debug for WhisperCppConfig
Source§impl Default for WhisperCppConfig
impl Default for WhisperCppConfig
Source§fn default() -> WhisperCppConfig
fn default() -> WhisperCppConfig
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for WhisperCppConfig
impl<'de> Deserialize<'de> for WhisperCppConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for WhisperCppConfig
impl PartialEq for WhisperCppConfig
Source§fn eq(&self, other: &WhisperCppConfig) -> bool
fn eq(&self, other: &WhisperCppConfig) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for WhisperCppConfig
impl Serialize for WhisperCppConfig
impl Eq for WhisperCppConfig
impl StructuralPartialEq for WhisperCppConfig
Auto Trait Implementations§
impl Freeze for WhisperCppConfig
impl RefUnwindSafe for WhisperCppConfig
impl Send for WhisperCppConfig
impl Sync for WhisperCppConfig
impl Unpin for WhisperCppConfig
impl UnsafeUnpin for WhisperCppConfig
impl UnwindSafe for WhisperCppConfig
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