#[non_exhaustive]pub struct ProviderPreferences {Show 14 fields
pub allow_fallbacks: Option<Option<bool>>,
pub data_collection: Option<Option<DataCollection>>,
pub enforce_distillable_text: Option<Option<bool>>,
pub ignore: Option<Option<Vec<String>>>,
pub max_price: Option<MaxPrice>,
pub only: Option<Option<Vec<String>>>,
pub order: Option<Option<Vec<String>>>,
pub preferred_max_latency: Option<Option<PreferredCutoff>>,
pub preferred_min_throughput: Option<Option<PreferredCutoff>>,
pub quantizations: Option<Option<Vec<Quantization>>>,
pub require_parameters: Option<Option<bool>>,
pub sort: Option<Option<ProviderSort>>,
pub zdr: Option<Option<bool>>,
pub rest: Rest,
}Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.allow_fallbacks: Option<Option<bool>>§data_collection: Option<Option<DataCollection>>§enforce_distillable_text: Option<Option<bool>>§ignore: Option<Option<Vec<String>>>§max_price: Option<MaxPrice>§only: Option<Option<Vec<String>>>§order: Option<Option<Vec<String>>>§preferred_max_latency: Option<Option<PreferredCutoff>>§preferred_min_throughput: Option<Option<PreferredCutoff>>§quantizations: Option<Option<Vec<Quantization>>>§require_parameters: Option<Option<bool>>§sort: Option<Option<ProviderSort>>§zdr: Option<Option<bool>>§rest: RestImplementations§
Source§impl ProviderPreferences
impl ProviderPreferences
Sourcepub fn builder() -> ProviderPreferencesBuilder
pub fn builder() -> ProviderPreferencesBuilder
Start a builder by supplying the required fields in declaration order.
Trait Implementations§
Source§impl Clone for ProviderPreferences
impl Clone for ProviderPreferences
Source§impl Debug for ProviderPreferences
impl Debug for ProviderPreferences
Source§impl DeclaredFields for ProviderPreferences
impl DeclaredFields for ProviderPreferences
fn into_declared(self) -> Self
Source§impl<'de> Deserialize<'de> for ProviderPreferences
impl<'de> Deserialize<'de> for ProviderPreferences
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
Source§impl PartialEq for ProviderPreferences
impl PartialEq for ProviderPreferences
Source§impl Serialize for ProviderPreferences
impl Serialize for ProviderPreferences
impl StructuralPartialEq for ProviderPreferences
Auto Trait Implementations§
impl Freeze for ProviderPreferences
impl RefUnwindSafe for ProviderPreferences
impl Send for ProviderPreferences
impl Sync for ProviderPreferences
impl Unpin for ProviderPreferences
impl UnsafeUnpin for ProviderPreferences
impl UnwindSafe for ProviderPreferences
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