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