pub struct ListModelsParamsBuilder { /* private fields */ }Expand description
Builder for ListModelsParams.
Implementations§
Source§impl ListModelsParamsBuilder
impl ListModelsParamsBuilder
pub fn category(&mut self, value: ModelCategory) -> &mut Self
pub fn supported_parameters(&mut self, value: SupportedParameters) -> &mut Self
pub fn output_modalities<VALUE: Into<String>>( &mut self, value: VALUE, ) -> &mut Self
pub fn sort<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
pub fn q<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
pub fn input_modalities<VALUE: Into<String>>( &mut self, value: VALUE, ) -> &mut Self
pub fn context(&mut self, value: u32) -> &mut Self
pub fn min_price(&mut self, value: f64) -> &mut Self
pub fn max_price(&mut self, value: f64) -> &mut Self
pub fn arch<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
pub fn providers<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
pub fn distillable(&mut self, value: bool) -> &mut Self
pub fn zdr(&mut self, value: bool) -> &mut Self
pub fn region<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
Sourcepub fn build(&self) -> Result<ListModelsParams, OpenRouterError>
pub fn build(&self) -> Result<ListModelsParams, OpenRouterError>
Trait Implementations§
Source§impl Clone for ListModelsParamsBuilder
impl Clone for ListModelsParamsBuilder
Source§fn clone(&self) -> ListModelsParamsBuilder
fn clone(&self) -> ListModelsParamsBuilder
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 moreAuto Trait Implementations§
impl Freeze for ListModelsParamsBuilder
impl RefUnwindSafe for ListModelsParamsBuilder
impl Send for ListModelsParamsBuilder
impl Sync for ListModelsParamsBuilder
impl Unpin for ListModelsParamsBuilder
impl UnsafeUnpin for ListModelsParamsBuilder
impl UnwindSafe for ListModelsParamsBuilder
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