pub struct EmbedSection {
pub model: String,
pub base_url: Option<String>,
pub api_key: Option<String>,
pub api_key_env: String,
}Expand description
嵌入模型配置(v30:enabled 开关已硬编码恒开启——无 Key 环境由 运行时降级处理,见 lib.rs attach_features 与 build_search_index; 字段级 serde 默认=Default 阵营,缺键即用默认可用组合)
Fields§
§model: String§base_url: Option<String>§api_key: Option<String>§api_key_env: StringTrait Implementations§
Source§impl Clone for EmbedSection
impl Clone for EmbedSection
Source§fn clone(&self) -> EmbedSection
fn clone(&self) -> EmbedSection
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 moreSource§impl Debug for EmbedSection
impl Debug for EmbedSection
Source§impl Default for EmbedSection
impl Default for EmbedSection
Source§impl<'de> Deserialize<'de> for EmbedSection
impl<'de> Deserialize<'de> for EmbedSection
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 EmbedSection
impl RefUnwindSafe for EmbedSection
impl Send for EmbedSection
impl Sync for EmbedSection
impl Unpin for EmbedSection
impl UnsafeUnpin for EmbedSection
impl UnwindSafe for EmbedSection
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> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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