pub struct GoogleConfig {
pub base_url: Option<String>,
pub api_key_env: String,
pub config_name: String,
pub max_tokens: Option<u32>,
pub connect_timeout: Duration,
pub read_timeout: Duration,
pub max_retries: u32,
pub store: bool,
}Expand description
Settings from [providers.google] this adapter uses.
Fields§
§base_url: Option<String>§api_key_env: String§config_name: StringThe section name, which is also the keyring account.
max_tokens: Option<u32>§connect_timeout: Duration§read_timeout: DurationThe longest gap between streamed chunks.
max_retries: u32§store: boolLet Google keep the requests (store); off unless the section says so.
Trait Implementations§
Source§impl Clone for GoogleConfig
impl Clone for GoogleConfig
Source§impl Debug for GoogleConfig
impl Debug for GoogleConfig
Source§impl Default for GoogleConfig
impl Default for GoogleConfig
Source§impl PartialEq for GoogleConfig
impl PartialEq for GoogleConfig
impl StructuralPartialEq for GoogleConfig
Auto Trait Implementations§
impl Forget for GoogleConfig
impl Freeze for GoogleConfig
impl Move for GoogleConfig
impl RefUnwindSafe for GoogleConfig
impl Send for GoogleConfig
impl Sync for GoogleConfig
impl Unpin for GoogleConfig
impl UnsafeUnpin for GoogleConfig
impl UnwindSafe for GoogleConfig
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more