pub struct ModelUtils;Expand description
Model name utilities
Implementations§
Source§impl ModelUtils
impl ModelUtils
Sourcepub fn infer_provider(model: &str) -> Option<&str>
pub fn infer_provider(model: &str) -> Option<&str>
Get the provider from model name
Auto Trait Implementations§
impl Freeze for ModelUtils
impl RefUnwindSafe for ModelUtils
impl Send for ModelUtils
impl Sync for ModelUtils
impl Unpin for ModelUtils
impl UnwindSafe for ModelUtils
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