pub struct MicrosoftConfig {
pub endpoint: Option<String>,
pub api_key: Option<String>,
pub concurrent_limit: usize,
}Expand description
微软翻译器配置
Fields§
§endpoint: Option<String>微软翻译服务的端点
api_key: Option<String>API Key(可选),如果未设置则使用自动认证
concurrent_limit: usize并发请求数限制
Implementations§
Source§impl MicrosoftConfig
impl MicrosoftConfig
pub fn builder() -> MicrosoftConfigBuilder
Trait Implementations§
Source§impl Clone for MicrosoftConfig
impl Clone for MicrosoftConfig
Source§fn clone(&self) -> MicrosoftConfig
fn clone(&self) -> MicrosoftConfig
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 MicrosoftConfig
impl Debug for MicrosoftConfig
Auto Trait Implementations§
impl Freeze for MicrosoftConfig
impl RefUnwindSafe for MicrosoftConfig
impl Send for MicrosoftConfig
impl Sync for MicrosoftConfig
impl Unpin for MicrosoftConfig
impl UnwindSafe for MicrosoftConfig
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