pub struct ModelRouteApply {
pub harness: String,
pub profile: Option<String>,
pub provider: Option<String>,
pub base_url: Option<String>,
pub key_env: Option<String>,
pub model: Option<String>,
pub api_mode: Option<String>,
pub plan: bool,
pub homes: HarnessHomes,
}Expand description
One declared model route.
Fields§
§harness: StringHarness the route is applied to.
profile: Option<String>Hermes profile the route belongs to; absent means the root home.
provider: Option<String>Provider kind as the harness names it (Hermes: custom for an
OpenAI-compatible endpoint).
base_url: Option<String>Where model calls go: a URL, or a ${NAME} the harness resolves.
key_env: Option<String>The key, by reference only: an environment variable name.
model: Option<String>The default model.
api_mode: Option<String>The wire the endpoint speaks (Hermes: chat_completions).
plan: boolReport what would run without running it.
homes: HarnessHomesStorage roots.
Trait Implementations§
Source§impl Clone for ModelRouteApply
impl Clone for ModelRouteApply
Source§fn clone(&self) -> ModelRouteApply
fn clone(&self) -> ModelRouteApply
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 ModelRouteApply
impl Debug for ModelRouteApply
Source§impl Default for ModelRouteApply
impl Default for ModelRouteApply
Source§fn default() -> ModelRouteApply
fn default() -> ModelRouteApply
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ModelRouteApplywhere
ModelRouteApply: Default,
impl<'de> Deserialize<'de> for ModelRouteApplywhere
ModelRouteApply: Default,
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<ModelRouteApply, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<ModelRouteApply, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for ModelRouteApply
impl PartialEq for ModelRouteApply
Source§impl Serialize for ModelRouteApply
impl Serialize for ModelRouteApply
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for ModelRouteApply
Auto Trait Implementations§
impl Freeze for ModelRouteApply
impl RefUnwindSafe for ModelRouteApply
impl Send for ModelRouteApply
impl Sync for ModelRouteApply
impl Unpin for ModelRouteApply
impl UnsafeUnpin for ModelRouteApply
impl UnwindSafe for ModelRouteApply
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