pub enum NameSource<'a> {
LocalFile,
HuggingFace {
repo_id: &'a str,
},
}Expand description
Which naming signals are available for a model being added.
Local imports have no repository id, so they skip the repo rung of the
ladder in resolve_model_name entirely rather than passing a sentinel.
Variants§
Trait Implementations§
Source§impl<'a> Clone for NameSource<'a>
impl<'a> Clone for NameSource<'a>
Source§fn clone(&self) -> NameSource<'a>
fn clone(&self) -> NameSource<'a>
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 moreSource§impl<'a> Debug for NameSource<'a>
impl<'a> Debug for NameSource<'a>
impl<'a> Copy for NameSource<'a>
Auto Trait Implementations§
impl<'a> Freeze for NameSource<'a>
impl<'a> RefUnwindSafe for NameSource<'a>
impl<'a> Send for NameSource<'a>
impl<'a> Sync for NameSource<'a>
impl<'a> Unpin for NameSource<'a>
impl<'a> UnsafeUnpin for NameSource<'a>
impl<'a> UnwindSafe for NameSource<'a>
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