pub struct ModelFiles {
pub model: PathBuf,
pub voices: PathBuf,
pub digests: Vec<(PathBuf, String)>,
}Expand description
A model’s files, and the digests the install declared for them.
Fields§
§model: PathBufThe ONNX model file.
voices: PathBufThe directory of <voice>.bin style files.
digests: Vec<(PathBuf, String)>Digests to check before a load, keyed by path.
Implementations§
Source§impl ModelFiles
impl ModelFiles
Sourcepub fn new(model: PathBuf, voices: PathBuf) -> Self
pub fn new(model: PathBuf, voices: PathBuf) -> Self
The model file and the voice directory it renders with.
Sourcepub fn with_digests(self, digests: Vec<(PathBuf, String)>) -> Self
pub fn with_digests(self, digests: Vec<(PathBuf, String)>) -> Self
Carry the digests the install declared, so a load can verify them.
Trait Implementations§
Source§impl Clone for ModelFiles
impl Clone for ModelFiles
Source§impl Debug for ModelFiles
impl Debug for ModelFiles
impl Eq for ModelFiles
Source§impl PartialEq for ModelFiles
impl PartialEq for ModelFiles
impl StructuralPartialEq for ModelFiles
Auto Trait Implementations§
impl Freeze for ModelFiles
impl RefUnwindSafe for ModelFiles
impl Send for ModelFiles
impl Sync for ModelFiles
impl Unpin for ModelFiles
impl UnsafeUnpin for ModelFiles
impl UnwindSafe for ModelFiles
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.