pub struct CreateVoiceConsentRequest {
pub name: String,
pub recording: AudioInput,
pub language: String,
}Available on crate feature
audio-types only.Expand description
Request to create a voice consent recording.
Fields§
§name: StringThe label to use for this consent recording.
recording: AudioInputThe consent audio recording file. Maximum size is 10 MiB.
Supported MIME types: audio/mpeg, audio/wav, audio/x-wav, audio/ogg,
audio/aac, audio/flac, audio/webm, audio/mp4.
language: StringThe BCP 47 language tag for the consent phrase (for example, en-US).
Trait Implementations§
Source§impl AsyncTryFrom<CreateVoiceConsentRequest> for Form
Available on crate feature _api only.
impl AsyncTryFrom<CreateVoiceConsentRequest> for Form
Available on crate feature
_api only.Source§type Error = OpenAIError
type Error = OpenAIError
The type returned in the event of a conversion error.
Source§impl Clone for CreateVoiceConsentRequest
impl Clone for CreateVoiceConsentRequest
Source§fn clone(&self) -> CreateVoiceConsentRequest
fn clone(&self) -> CreateVoiceConsentRequest
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 CreateVoiceConsentRequest
impl Debug for CreateVoiceConsentRequest
Source§impl Default for CreateVoiceConsentRequest
impl Default for CreateVoiceConsentRequest
Source§fn default() -> CreateVoiceConsentRequest
fn default() -> CreateVoiceConsentRequest
Returns the “default value” for a type. Read more
impl StructuralPartialEq for CreateVoiceConsentRequest
Auto Trait Implementations§
impl !Freeze for CreateVoiceConsentRequest
impl RefUnwindSafe for CreateVoiceConsentRequest
impl Send for CreateVoiceConsentRequest
impl Sync for CreateVoiceConsentRequest
impl Unpin for CreateVoiceConsentRequest
impl UnwindSafe for CreateVoiceConsentRequest
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