pub struct SmartPrompt {
pub emotion_type: String,
pub previous_text: Option<String>,
pub next_text: Option<String>,
}Expand description
Context-aware emotion inference for ssfm-v30 model
Fields§
§emotion_type: StringMust be “smart” for context-aware emotion inference
previous_text: Option<String>Text that comes before the main text (max 2000 chars)
next_text: Option<String>Text that comes after the main text (max 2000 chars)
Implementations§
Trait Implementations§
Source§impl Clone for SmartPrompt
impl Clone for SmartPrompt
Source§fn clone(&self) -> SmartPrompt
fn clone(&self) -> SmartPrompt
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 SmartPrompt
impl Debug for SmartPrompt
Source§impl Default for SmartPrompt
impl Default for SmartPrompt
Source§impl<'de> Deserialize<'de> for SmartPrompt
impl<'de> Deserialize<'de> for SmartPrompt
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 From<SmartPrompt> for TTSPrompt
impl From<SmartPrompt> for TTSPrompt
Source§fn from(prompt: SmartPrompt) -> Self
fn from(prompt: SmartPrompt) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for SmartPrompt
impl RefUnwindSafe for SmartPrompt
impl Send for SmartPrompt
impl Sync for SmartPrompt
impl Unpin for SmartPrompt
impl UnsafeUnpin for SmartPrompt
impl UnwindSafe for SmartPrompt
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