pub struct ModelMapping {
pub source_model: String,
pub canonical_model: String,
pub provider: Option<String>,
pub harness: Option<String>,
pub confidence: f64,
pub rule: String,
}Expand description
Model mapping entry
Fields§
§source_model: StringSource model ID (as received)
canonical_model: StringResolved canonical model
provider: Option<String>Provider (if known)
harness: Option<String>Harness (if known)
confidence: f64Mapping confidence (0-1)
rule: StringMapping rule used
Trait Implementations§
Source§impl Clone for ModelMapping
impl Clone for ModelMapping
Source§fn clone(&self) -> ModelMapping
fn clone(&self) -> ModelMapping
Returns a duplicate of the value. Read more
1.0.0 · 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 ModelMapping
impl Debug for ModelMapping
Source§impl<'de> Deserialize<'de> for ModelMapping
impl<'de> Deserialize<'de> for ModelMapping
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 ModelMapping
impl RefUnwindSafe for ModelMapping
impl Send for ModelMapping
impl Sync for ModelMapping
impl Unpin for ModelMapping
impl UnsafeUnpin for ModelMapping
impl UnwindSafe for ModelMapping
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