pub struct RegisterFauxProviderOptions {
pub api: Option<String>,
pub provider: Option<String>,
pub models: Option<Vec<FauxModelDefinition>>,
pub tokens_per_second: Option<f64>,
pub token_size_min: Option<usize>,
pub token_size_max: Option<usize>,
}Fields§
§api: Option<String>§provider: Option<String>§models: Option<Vec<FauxModelDefinition>>§tokens_per_second: Option<f64>§token_size_min: Option<usize>§token_size_max: Option<usize>Trait Implementations§
Source§impl Default for RegisterFauxProviderOptions
impl Default for RegisterFauxProviderOptions
Source§fn default() -> RegisterFauxProviderOptions
fn default() -> RegisterFauxProviderOptions
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for RegisterFauxProviderOptions
impl RefUnwindSafe for RegisterFauxProviderOptions
impl Send for RegisterFauxProviderOptions
impl Sync for RegisterFauxProviderOptions
impl Unpin for RegisterFauxProviderOptions
impl UnsafeUnpin for RegisterFauxProviderOptions
impl UnwindSafe for RegisterFauxProviderOptions
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreCreates a shared type from an unshared type.