pub struct Prompt {
pub prompt: String,
pub prompt_id: String,
pub status: Option<PromptStatus>,
pub error: Option<String>,
pub speaker_id: Option<String>,
}
Available on crate feature
tts
only.Expand description
Defines information about the prompt in a custom model
Fields§
§prompt: String
The user-specified text of the prompt
prompt_id: String
The user-specified identifier (name) of the prompt
status: Option<PromptStatus>
§error: Option<String>
If the status of the prompt is failed, an error message that describes the reason for the failure. The field is omitted if no error occurred
speaker_id: Option<String>
The speaker ID (GUID) of the speaker for which the prompt was defined. The field is omitted if no speaker ID was specified
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Prompt
impl<'de> Deserialize<'de> for Prompt
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
impl Eq for Prompt
impl StructuralPartialEq for Prompt
Auto Trait Implementations§
impl Freeze for Prompt
impl RefUnwindSafe for Prompt
impl Send for Prompt
impl Sync for Prompt
impl Unpin for Prompt
impl UnwindSafe for Prompt
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,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.