pub struct EmbedSettingsResult {
pub models: ModelSettings,
pub source: Option<ModelSource>,
pub shadowed_device_models: bool,
pub device: DeviceSettings,
pub local_enabled: bool,
pub remote_enabled: bool,
pub active: Option<Slot>,
pub local_qtype: Option<QType>,
pub avx2: bool,
pub key_set: bool,
pub info: EmbedInfoResult,
}Expand description
Result of every embed.* settings method: the settings, and what they resolve to.
Fields§
§models: ModelSettingsThe model settings in effect.
source: Option<ModelSource>Where they come from; None when there are none.
shadowed_device_models: boolThis host’s own [models] exists but the workgroup’s file wins.
device: DeviceSettingsThis device’s own settings, as written.
local_enabled: boolThe local slot’s effective switch.
remote_enabled: boolThe remote slot’s effective switch.
active: Option<Slot>The slot the bridge serves.
local_qtype: Option<QType>How the bridge holds the local model’s weights: this device’s local_qtype, or the
default. Absent from bridges before 2.4.
avx2: boolWhether this CPU has AVX2 (always true off x86_64).
key_set: boolWhether an API key is stored on this device.
info: EmbedInfoResultWhat embed.info answers now.
Implementations§
Trait Implementations§
Source§impl Clone for EmbedSettingsResult
impl Clone for EmbedSettingsResult
Source§impl Debug for EmbedSettingsResult
impl Debug for EmbedSettingsResult
Source§impl Default for EmbedSettingsResult
impl Default for EmbedSettingsResult
Source§impl<'de> Deserialize<'de> for EmbedSettingsResult
impl<'de> Deserialize<'de> for EmbedSettingsResult
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 EmbedSettingsResult
impl RefUnwindSafe for EmbedSettingsResult
impl Send for EmbedSettingsResult
impl Sync for EmbedSettingsResult
impl Unpin for EmbedSettingsResult
impl UnsafeUnpin for EmbedSettingsResult
impl UnwindSafe for EmbedSettingsResult
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