pub struct DialogueTurn {
pub speaker: String,
pub text: String,
pub voice: Option<String>,
}Expand description
A single dialogue turn (used for building the request — converted to text + voices).
Fields§
§speaker: StringSpeaker name or identifier.
text: StringText for this speaker to say.
voice: Option<String>Voice ID to use for this speaker.
Trait Implementations§
Source§impl Clone for DialogueTurn
impl Clone for DialogueTurn
Source§fn clone(&self) -> DialogueTurn
fn clone(&self) -> DialogueTurn
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 DialogueTurn
impl Debug for DialogueTurn
Source§impl Default for DialogueTurn
impl Default for DialogueTurn
Source§fn default() -> DialogueTurn
fn default() -> DialogueTurn
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for DialogueTurn
impl<'de> Deserialize<'de> for DialogueTurn
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
Auto Trait Implementations§
impl Freeze for DialogueTurn
impl RefUnwindSafe for DialogueTurn
impl Send for DialogueTurn
impl Sync for DialogueTurn
impl Unpin for DialogueTurn
impl UnsafeUnpin for DialogueTurn
impl UnwindSafe for DialogueTurn
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