pub struct ProfileSnapshot {
pub name: String,
pub role: SuggestorRole,
pub output_keys: Vec<ContextKey>,
pub cost_hint: CostClass,
pub latency_hint: LatencyClass,
pub capabilities: Vec<SuggestorCapability>,
pub confidence_min: f32,
pub confidence_max: f32,
}Expand description
Serializable snapshot of a suggestor’s formation metadata.
Fields§
§name: String§role: SuggestorRole§output_keys: Vec<ContextKey>§cost_hint: CostClass§latency_hint: LatencyClass§capabilities: Vec<SuggestorCapability>§confidence_min: f32§confidence_max: f32Implementations§
Source§impl ProfileSnapshot
impl ProfileSnapshot
pub fn from_profile( name: impl Into<String>, profile: &dyn SuggestorProfile, ) -> Self
Trait Implementations§
Source§impl Clone for ProfileSnapshot
impl Clone for ProfileSnapshot
Source§fn clone(&self) -> ProfileSnapshot
fn clone(&self) -> ProfileSnapshot
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 ProfileSnapshot
impl Debug for ProfileSnapshot
Source§impl<'de> Deserialize<'de> for ProfileSnapshot
impl<'de> Deserialize<'de> for ProfileSnapshot
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 ProfileSnapshot
impl RefUnwindSafe for ProfileSnapshot
impl Send for ProfileSnapshot
impl Sync for ProfileSnapshot
impl Unpin for ProfileSnapshot
impl UnsafeUnpin for ProfileSnapshot
impl UnwindSafe for ProfileSnapshot
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