pub struct ProviderProfile {
pub name: String,
pub models: HashMap<String, ModelConstraints>,
pub default: ModelConstraints,
}Expand description
Full provider profile with per-model constraints.
Fields§
§name: String§models: HashMap<String, ModelConstraints>§default: ModelConstraintsImplementations§
Source§impl ProviderProfile
impl ProviderProfile
Sourcepub fn constraints_for(&self, model: Option<&str>) -> &ModelConstraints
pub fn constraints_for(&self, model: Option<&str>) -> &ModelConstraints
Get constraints for a specific model, falling back to provider defaults.
Trait Implementations§
Source§impl Clone for ProviderProfile
impl Clone for ProviderProfile
Source§fn clone(&self) -> ProviderProfile
fn clone(&self) -> ProviderProfile
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 ProviderProfile
impl Debug for ProviderProfile
Source§impl<'de> Deserialize<'de> for ProviderProfile
impl<'de> Deserialize<'de> for ProviderProfile
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 ProviderProfile
impl RefUnwindSafe for ProviderProfile
impl Send for ProviderProfile
impl Sync for ProviderProfile
impl Unpin for ProviderProfile
impl UnsafeUnpin for ProviderProfile
impl UnwindSafe for ProviderProfile
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