pub struct SpeechAdaptation {
pub abnf_grammar: Option<ABNFGrammar>,
pub custom_classes: Option<Vec<CustomClass>>,
pub phrase_set_references: Option<Vec<String>>,
pub phrase_sets: Option<Vec<PhraseSet>>,
}Expand description
Speech adaptation configuration.
This type is not used in any activity, and only used as part of another schema.
Fields§
§abnf_grammar: Option<ABNFGrammar>Augmented Backus-Naur form (ABNF) is a standardized grammar notation comprised by a set of derivation rules. See specifications: https://www.w3.org/TR/speech-grammar
custom_classes: Option<Vec<CustomClass>>A collection of custom classes. To specify the classes inline, leave the class’ name blank and fill in the rest of its fields, giving it a unique custom_class_id. Refer to the inline defined class in phrase hints by its custom_class_id.
phrase_set_references: Option<Vec<String>>A collection of phrase set resource names to use.
phrase_sets: Option<Vec<PhraseSet>>A collection of phrase sets. To specify the hints inline, leave the phrase set’s name blank and fill in the rest of its fields. Any phrase set can use any custom class.
Trait Implementations§
Source§impl Clone for SpeechAdaptation
impl Clone for SpeechAdaptation
Source§fn clone(&self) -> SpeechAdaptation
fn clone(&self) -> SpeechAdaptation
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 SpeechAdaptation
impl Debug for SpeechAdaptation
Source§impl Default for SpeechAdaptation
impl Default for SpeechAdaptation
Source§fn default() -> SpeechAdaptation
fn default() -> SpeechAdaptation
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for SpeechAdaptation
impl<'de> Deserialize<'de> for SpeechAdaptation
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 Serialize for SpeechAdaptation
impl Serialize for SpeechAdaptation
impl Part for SpeechAdaptation
Auto Trait Implementations§
impl Freeze for SpeechAdaptation
impl RefUnwindSafe for SpeechAdaptation
impl Send for SpeechAdaptation
impl Sync for SpeechAdaptation
impl Unpin for SpeechAdaptation
impl UnwindSafe for SpeechAdaptation
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