pub struct RepoTypeKernel;Expand description
Kernel-repository marker. See RepoType for the trait, the per-kind string
table, and usage examples; use HFClient::kernel for the
typed shortcut. Note that
HFRepository::<RepoTypeKernel>::info returns a slim
shape — to get full model-style metadata for a kernel repo, build a model handle
for the same id and call info() on that.
Trait Implementations§
Source§impl Clone for RepoTypeKernel
impl Clone for RepoTypeKernel
Source§fn clone(&self) -> RepoTypeKernel
fn clone(&self) -> RepoTypeKernel
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 moreimpl Copy for RepoTypeKernel
Source§impl Debug for RepoTypeKernel
impl Debug for RepoTypeKernel
Source§impl Default for RepoTypeKernel
impl Default for RepoTypeKernel
Source§fn default() -> RepoTypeKernel
fn default() -> RepoTypeKernel
Returns the “default value” for a type. Read more
Source§impl Display for RepoTypeKernel
impl Display for RepoTypeKernel
Source§impl RepoType for RepoTypeKernel
impl RepoType for RepoTypeKernel
Source§fn singular(&self) -> &'static str
fn singular(&self) -> &'static str
Lowercase singular form of the repo kind:
"model", "dataset", "space", or "kernel".
Used in logs, error messages, and the "type" field of repo create/delete/move bodies.Source§fn plural(&self) -> &'static str
fn plural(&self) -> &'static str
Lowercase plural form, also the API segment in
/api/{plural}/{repo_id} URLs:
"models", "datasets", "spaces", or "kernels".Source§fn url_prefix(&self) -> &'static str
fn url_prefix(&self) -> &'static str
Path prefix used in resolve URLs (
<endpoint>/{prefix}{repo_id}/resolve/...):
"" for RepoTypeModel (the model namespace is unprefixed) and "<plural>/"
for the other three kinds.Auto Trait Implementations§
impl Freeze for RepoTypeKernel
impl RefUnwindSafe for RepoTypeKernel
impl Send for RepoTypeKernel
impl Sync for RepoTypeKernel
impl Unpin for RepoTypeKernel
impl UnsafeUnpin for RepoTypeKernel
impl UnwindSafe for RepoTypeKernel
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> DropFlavorWrapper<T> for T
impl<T> DropFlavorWrapper<T> for T
Source§impl<T, W> HasTypeWitness<W> for Twhere
W: MakeTypeWitness<Arg = T>,
T: ?Sized,
impl<T, W> HasTypeWitness<W> for Twhere
W: MakeTypeWitness<Arg = T>,
T: ?Sized,
Source§impl<T> Identity for Twhere
T: ?Sized,
impl<T> Identity for Twhere
T: ?Sized,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
impl<E> ResultError for E
impl<T> ResultType for T
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.