pub struct TextToAudioRequest {
pub text: String,
pub user: String,
pub streaming: bool,
}
Expand description
文字转语音请求
Fields§
§text: String
语音生成内容。
user: String
用户标识,由开发者定义规则,需保证用户标识在应用内唯一。
streaming: bool
是否启用流式输出true、false。
Trait Implementations§
Source§impl Clone for TextToAudioRequest
impl Clone for TextToAudioRequest
Source§fn clone(&self) -> TextToAudioRequest
fn clone(&self) -> TextToAudioRequest
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 TextToAudioRequest
impl Debug for TextToAudioRequest
Source§impl Default for TextToAudioRequest
impl Default for TextToAudioRequest
Source§fn default() -> TextToAudioRequest
fn default() -> TextToAudioRequest
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for TextToAudioRequest
impl<'de> Deserialize<'de> for TextToAudioRequest
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 TextToAudioRequest
impl RefUnwindSafe for TextToAudioRequest
impl Send for TextToAudioRequest
impl Sync for TextToAudioRequest
impl Unpin for TextToAudioRequest
impl UnwindSafe for TextToAudioRequest
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