pub struct SwitchService;Implementations§
Source§impl SwitchService
impl SwitchService
Sourcepub fn get_all_options() -> Vec<ProviderModelOption>
pub fn get_all_options() -> Vec<ProviderModelOption>
Get all available provider/model combinations
Sourcepub fn switch_to(provider: &str, model: &str) -> Result<()>
pub fn switch_to(provider: &str, model: &str) -> Result<()>
Switch to a specific provider and model
Sourcepub fn list_providers() -> Vec<String>
pub fn list_providers() -> Vec<String>
List all available providers
Auto Trait Implementations§
impl Freeze for SwitchService
impl RefUnwindSafe for SwitchService
impl Send for SwitchService
impl Sync for SwitchService
impl Unpin for SwitchService
impl UnwindSafe for SwitchService
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