pub struct CloudTtsConfig {
pub api_key: String,
pub base_url: Option<String>,
}Available on crate feature
audio only.Expand description
Shared configuration for cloud TTS providers.
Fields§
§api_key: StringAPI key for authentication.
base_url: Option<String>Optional base URL override.
Implementations§
Source§impl CloudTtsConfig
impl CloudTtsConfig
Sourcepub fn new(api_key: impl Into<String>) -> CloudTtsConfig
Available on crate features tts or qwen3-tts only.
pub fn new(api_key: impl Into<String>) -> CloudTtsConfig
tts or qwen3-tts only.Create config from an API key.
Sourcepub fn with_base_url(self, url: impl Into<String>) -> CloudTtsConfig
Available on crate features tts or qwen3-tts only.
pub fn with_base_url(self, url: impl Into<String>) -> CloudTtsConfig
tts or qwen3-tts only.Override the base URL.
Trait Implementations§
Source§impl Clone for CloudTtsConfig
impl Clone for CloudTtsConfig
Source§fn clone(&self) -> CloudTtsConfig
fn clone(&self) -> CloudTtsConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§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 CloudTtsConfig
impl RefUnwindSafe for CloudTtsConfig
impl Send for CloudTtsConfig
impl Sync for CloudTtsConfig
impl Unpin for CloudTtsConfig
impl UnsafeUnpin for CloudTtsConfig
impl UnwindSafe for CloudTtsConfig
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