pub struct WhisperModelsResponse {
pub models: Vec<WhisperModelInfo>,
pub active: Option<String>,
pub total_disk_bytes: u64,
pub system_memory_mb: u32,
}Fields§
§models: Vec<WhisperModelInfo>Catalogue ordered from smallest to largest.
active: Option<String>Currently active model id (None if none installed yet).
total_disk_bytes: u64Total bytes occupied by every installed model. Drives the “Disk usage” line in the settings page.
system_memory_mb: u32Total physical RAM (in MB) the host machine reports. The UI
shows this next to each model’s requiredMemoryMb so the user
understands why a model is greyed out.
Trait Implementations§
Source§impl Clone for WhisperModelsResponse
impl Clone for WhisperModelsResponse
Source§fn clone(&self) -> WhisperModelsResponse
fn clone(&self) -> WhisperModelsResponse
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 WhisperModelsResponse
impl Debug for WhisperModelsResponse
Source§impl<'de> Deserialize<'de> for WhisperModelsResponse
impl<'de> Deserialize<'de> for WhisperModelsResponse
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
Auto Trait Implementations§
impl Freeze for WhisperModelsResponse
impl RefUnwindSafe for WhisperModelsResponse
impl Send for WhisperModelsResponse
impl Sync for WhisperModelsResponse
impl Unpin for WhisperModelsResponse
impl UnsafeUnpin for WhisperModelsResponse
impl UnwindSafe for WhisperModelsResponse
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