Struct utils::phrase_package::PhrasePackage [−][src]
Expand description
A phrase package which the user is requesting a speech to be generated for.
Fields
word: Stringlang: Stringspeed: f32fmt: StringImplementations
Generate a filename, minus the file extension
Collect the name of the file pre-conversion or speed change
Validates (and attempts to fix) a phrase package. Returns Ok() if the package is valid, and Err otherwise. Attempts to correct:
- Speed values larger or smaller than the allowed values
- Speed values that are not divisible by 0.5
Fails on:
- Invalid language selection
- Invalid file format selection
- Phrase too long
- Phrase contains invalid chars (TBD)
- Phrase contains invalid phrases
Trait Implementations
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 RefUnwindSafe for PhrasePackage
impl Send for PhrasePackage
impl Sync for PhrasePackage
impl Unpin for PhrasePackage
impl UnwindSafe for PhrasePackage
Blanket Implementations
Mutably borrows from an owned value. Read more
pub fn into_collection<A>(self) -> SmallVec<A> where
A: Array<Item = T>,
pub fn into_collection<A>(self) -> SmallVec<A> where
A: Array<Item = T>,
Converts self into a collection.
pub fn vzip(self) -> V
Attaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more
