pub struct RepoTypeSpace;Expand description
Space-repository marker. See RepoType for the trait, the per-kind string
table, and usage examples; use HFClient::space for the
typed shortcut. This is the marker used to access Space-only methods on
HFRepository such as
runtime and
pause.
Trait Implementations§
Source§impl Clone for RepoTypeSpace
impl Clone for RepoTypeSpace
Source§fn clone(&self) -> RepoTypeSpace
fn clone(&self) -> RepoTypeSpace
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 RepoTypeSpace
Source§impl Debug for RepoTypeSpace
impl Debug for RepoTypeSpace
Source§impl Default for RepoTypeSpace
impl Default for RepoTypeSpace
Source§fn default() -> RepoTypeSpace
fn default() -> RepoTypeSpace
Returns the “default value” for a type. Read more
Source§impl Display for RepoTypeSpace
impl Display for RepoTypeSpace
Source§impl RepoType for RepoTypeSpace
impl RepoType for RepoTypeSpace
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 RepoTypeSpace
impl RefUnwindSafe for RepoTypeSpace
impl Send for RepoTypeSpace
impl Sync for RepoTypeSpace
impl Unpin for RepoTypeSpace
impl UnsafeUnpin for RepoTypeSpace
impl UnwindSafe for RepoTypeSpace
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.