pub enum Mapping {
Exact,
Aliased(&'static str),
Manual,
}Expand description
How a catalog provider id maps to a models.dev provider key.
Variants§
Exact
The catalog id is the exact models.dev provider key.
Aliased(&'static str)
The catalog id maps to a different models.dev provider key.
Manual
The catalog id has no models.dev counterpart — keep its models as-is.
Implementations§
Source§impl Mapping
impl Mapping
Sourcepub fn upstream_key(&self) -> Option<&'static str>
pub fn upstream_key(&self) -> Option<&'static str>
Return the models.dev provider key this mapping resolves to, or None
for Mapping::Manual.
Trait Implementations§
impl Copy for Mapping
impl Eq for Mapping
impl StructuralPartialEq for Mapping
Auto Trait Implementations§
impl Freeze for Mapping
impl RefUnwindSafe for Mapping
impl Send for Mapping
impl Sync for Mapping
impl Unpin for Mapping
impl UnsafeUnpin for Mapping
impl UnwindSafe for Mapping
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