pub struct CreateVoiceConsentRequestArgs { /* private fields */ }Available on crate feature
audio-types only.Expand description
Builder for CreateVoiceConsentRequest.
Implementations§
Source§impl CreateVoiceConsentRequestArgs
impl CreateVoiceConsentRequestArgs
Sourcepub fn name<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
pub fn name<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
The label to use for this consent recording.
Sourcepub fn recording<VALUE: Into<AudioInput>>(&mut self, value: VALUE) -> &mut Self
pub fn recording<VALUE: Into<AudioInput>>(&mut self, value: VALUE) -> &mut Self
The 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.
Sourcepub fn language<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
pub fn language<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
The BCP 47 language tag for the consent phrase (for example, en-US).
Sourcepub fn build(&self) -> Result<CreateVoiceConsentRequest, OpenAIError>
pub fn build(&self) -> Result<CreateVoiceConsentRequest, OpenAIError>
Trait Implementations§
Source§impl Clone for CreateVoiceConsentRequestArgs
impl Clone for CreateVoiceConsentRequestArgs
Source§fn clone(&self) -> CreateVoiceConsentRequestArgs
fn clone(&self) -> CreateVoiceConsentRequestArgs
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl !Freeze for CreateVoiceConsentRequestArgs
impl RefUnwindSafe for CreateVoiceConsentRequestArgs
impl Send for CreateVoiceConsentRequestArgs
impl Sync for CreateVoiceConsentRequestArgs
impl Unpin for CreateVoiceConsentRequestArgs
impl UnwindSafe for CreateVoiceConsentRequestArgs
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)