pub struct AudioTranslation {
pub text: String,
pub language: Option<String>,
pub duration: Option<f64>,
pub segments: Vec<AudioTranscriptionSegment>,
pub words: Vec<AudioTranscriptionWord>,
pub extra: BTreeMap<String, Value>,
}Expand description
表示音频翻译响应。
Fields§
§text: String翻译文本。
language: Option<String>语言代码。
duration: Option<f64>音频时长。
segments: Vec<AudioTranscriptionSegment>分段结果。
words: Vec<AudioTranscriptionWord>词级结果。
extra: BTreeMap<String, Value>额外字段。
Trait Implementations§
Source§impl Clone for AudioTranslation
impl Clone for AudioTranslation
Source§fn clone(&self) -> AudioTranslation
fn clone(&self) -> AudioTranslation
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 AudioTranslation
impl Debug for AudioTranslation
Source§impl Default for AudioTranslation
impl Default for AudioTranslation
Source§fn default() -> AudioTranslation
fn default() -> AudioTranslation
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for AudioTranslation
impl<'de> Deserialize<'de> for AudioTranslation
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 AudioTranslation
impl RefUnwindSafe for AudioTranslation
impl Send for AudioTranslation
impl Sync for AudioTranslation
impl Unpin for AudioTranslation
impl UnsafeUnpin for AudioTranslation
impl UnwindSafe for AudioTranslation
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