pub struct PinnedSpec {
pub name: String,
pub launch_overrides: ServerConfigOptions,
}Expand description
A runtime pin: the one model a runtime will serve, plus how to launch it.
Carried by ModelRuntimePort::set_pin and serialized inside the
daemon’s POST /api/proxy/start body, which is why it derives serde.
Fields§
§name: StringName clients must address the model by. Matched exactly.
launch_overrides: ServerConfigOptionsStanding launch options for the pinned model, already resolved through the caller’s cascade — layered onto the runtime’s template at launch, winning field-wise (the cascade has already run; the template must not undo it).
Trait Implementations§
Source§impl Clone for PinnedSpec
impl Clone for PinnedSpec
Source§fn clone(&self) -> PinnedSpec
fn clone(&self) -> PinnedSpec
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 PinnedSpec
impl Debug for PinnedSpec
Source§impl Default for PinnedSpec
impl Default for PinnedSpec
Source§fn default() -> PinnedSpec
fn default() -> PinnedSpec
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for PinnedSpec
impl<'de> Deserialize<'de> for PinnedSpec
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 PinnedSpec
impl RefUnwindSafe for PinnedSpec
impl Send for PinnedSpec
impl Sync for PinnedSpec
impl Unpin for PinnedSpec
impl UnsafeUnpin for PinnedSpec
impl UnwindSafe for PinnedSpec
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