pub struct TlConfig {
pub provider: Option<String>,
pub model: Option<String>,
pub to: Option<String>,
}Expand description
Default settings in the [tl] section of config.toml.
Fields§
§provider: Option<String>Default provider name.
model: Option<String>Default model name.
to: Option<String>Default target language (ISO 639-1 code).
Trait Implementations§
Source§impl<'de> Deserialize<'de> for TlConfig
impl<'de> Deserialize<'de> for TlConfig
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 TlConfig
impl RefUnwindSafe for TlConfig
impl Send for TlConfig
impl Sync for TlConfig
impl Unpin for TlConfig
impl UnwindSafe for TlConfig
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