pub struct RepoTypeModel;Expand description
Model-repository marker. See RepoType for the trait, the per-kind string
table, and usage examples; use HFClient::model for the
typed shortcut.
Trait Implementations§
Source§impl Clone for RepoTypeModel
impl Clone for RepoTypeModel
Source§fn clone(&self) -> RepoTypeModel
fn clone(&self) -> RepoTypeModel
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 RepoTypeModel
Source§impl Debug for RepoTypeModel
impl Debug for RepoTypeModel
Source§impl Default for RepoTypeModel
impl Default for RepoTypeModel
Source§fn default() -> RepoTypeModel
fn default() -> RepoTypeModel
Returns the “default value” for a type. Read more
Source§impl Display for RepoTypeModel
impl Display for RepoTypeModel
Source§impl RepoType for RepoTypeModel
impl RepoType for RepoTypeModel
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 RepoTypeModel
impl RefUnwindSafe for RepoTypeModel
impl Send for RepoTypeModel
impl Sync for RepoTypeModel
impl Unpin for RepoTypeModel
impl UnsafeUnpin for RepoTypeModel
impl UnwindSafe for RepoTypeModel
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.