pub struct ConfigModel {
pub name: String,
pub alias: String,
pub display_name: String,
pub max_context_length: i64,
pub force_mapping: bool,
pub is_compat: bool,
pub support_configuration_update: bool,
pub image: bool,
pub thinking: Option<ThinkingSupport>,
pub input_modalities: Vec<String>,
pub output_modalities: Vec<String>,
}Expand description
One configured model entry (models[] of an API-key or OpenAI-compatible entry).
Fields§
§name: String§alias: String§display_name: String§max_context_length: i64§force_mapping: bool§is_compat: bool§support_configuration_update: bool§image: bool§thinking: Option<ThinkingSupport>§input_modalities: Vec<String>§output_modalities: Vec<String>Trait Implementations§
Source§impl Clone for ConfigModel
impl Clone for ConfigModel
Source§fn clone(&self) -> ConfigModel
fn clone(&self) -> ConfigModel
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 ConfigModel
impl Debug for ConfigModel
Source§impl Default for ConfigModel
impl Default for ConfigModel
Source§fn default() -> ConfigModel
fn default() -> ConfigModel
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ConfigModelwhere
ConfigModel: Default,
impl<'de> Deserialize<'de> for ConfigModelwhere
ConfigModel: Default,
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<ConfigModel, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<ConfigModel, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Forget for ConfigModel
impl Freeze for ConfigModel
impl Move for ConfigModel
impl RefUnwindSafe for ConfigModel
impl Send for ConfigModel
impl Sync for ConfigModel
impl Unpin for ConfigModel
impl UnsafeUnpin for ConfigModel
impl UnwindSafe for ConfigModel
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>,
impl<A, B, T> HttpServerConnExec<A, B> for Twhere
B: Body,
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