pub struct TextToSpeechOutput {
pub request_id: String,
pub output: Output,
pub usage: Option<Usage>,
}Fields§
§request_id: String§output: Output调用结果信息。
usage: Option<Usage>本次chat请求使用的token信息。
Implementations§
Source§impl TextToSpeechOutput
impl TextToSpeechOutput
pub async fn download(&self, save_path: &str) -> Result<(), AudioOutputError>
pub fn is_finished(&self) -> bool
Trait Implementations§
Source§impl Clone for TextToSpeechOutput
impl Clone for TextToSpeechOutput
Source§fn clone(&self) -> TextToSpeechOutput
fn clone(&self) -> TextToSpeechOutput
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 TextToSpeechOutput
impl Debug for TextToSpeechOutput
Source§impl<'de> Deserialize<'de> for TextToSpeechOutput
impl<'de> Deserialize<'de> for TextToSpeechOutput
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 TextToSpeechOutput
impl RefUnwindSafe for TextToSpeechOutput
impl Send for TextToSpeechOutput
impl Sync for TextToSpeechOutput
impl Unpin for TextToSpeechOutput
impl UnwindSafe for TextToSpeechOutput
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