pub struct HFClientCreateRepositoryBuilder<'f1, 'f2, I1, S: State = Empty>where
I1: RepoType,{ /* private fields */ }Expand description
Use builder syntax to set the inputs and finish with send().
Implementations§
Source§impl<'f1, 'f2, I1, S: State> HFClientCreateRepositoryBuilder<'f1, 'f2, I1, S>where
I1: RepoType,
impl<'f1, 'f2, I1, S: State> HFClientCreateRepositoryBuilder<'f1, 'f2, I1, S>where
I1: RepoType,
Sourcepub async fn send(self) -> HFResult<RepoUrl>where
S: IsComplete,
pub async fn send(self) -> HFResult<RepoUrl>where
S: IsComplete,
Finishes building and performs the requested action.
Sourcepub fn repo_id(
self,
value: &'f2 str,
) -> HFClientCreateRepositoryBuilder<'f1, 'f2, I1, SetRepoId<S>>where
S::RepoId: IsUnset,
pub fn repo_id(
self,
value: &'f2 str,
) -> HFClientCreateRepositoryBuilder<'f1, 'f2, I1, SetRepoId<S>>where
S::RepoId: IsUnset,
Required.
Repository ID in "owner/name" or "name" format.
Sourcepub fn repo_type(
self,
value: I1,
) -> HFClientCreateRepositoryBuilder<'f1, 'f2, I1, SetRepoType<S>>where
S::RepoType: IsUnset,
pub fn repo_type(
self,
value: I1,
) -> HFClientCreateRepositoryBuilder<'f1, 'f2, I1, SetRepoType<S>>where
S::RepoType: IsUnset,
Required.
The repo kind (RepoTypeModel, RepoTypeDataset, RepoTypeSpace,
or RepoTypeKernel).
Sourcepub fn private(
self,
value: bool,
) -> HFClientCreateRepositoryBuilder<'f1, 'f2, I1, SetPrivate<S>>where
S::Private: IsUnset,
pub fn private(
self,
value: bool,
) -> HFClientCreateRepositoryBuilder<'f1, 'f2, I1, SetPrivate<S>>where
S::Private: IsUnset,
Sourcepub fn maybe_private(
self,
value: Option<bool>,
) -> HFClientCreateRepositoryBuilder<'f1, 'f2, I1, SetPrivate<S>>where
S::Private: IsUnset,
pub fn maybe_private(
self,
value: Option<bool>,
) -> HFClientCreateRepositoryBuilder<'f1, 'f2, I1, SetPrivate<S>>where
S::Private: IsUnset,
Sourcepub fn exist_ok(
self,
value: bool,
) -> HFClientCreateRepositoryBuilder<'f1, 'f2, I1, SetExistOk<S>>where
S::ExistOk: IsUnset,
pub fn exist_ok(
self,
value: bool,
) -> HFClientCreateRepositoryBuilder<'f1, 'f2, I1, SetExistOk<S>>where
S::ExistOk: IsUnset,
Sourcepub fn maybe_exist_ok(
self,
value: Option<bool>,
) -> HFClientCreateRepositoryBuilder<'f1, 'f2, I1, SetExistOk<S>>where
S::ExistOk: IsUnset,
pub fn maybe_exist_ok(
self,
value: Option<bool>,
) -> HFClientCreateRepositoryBuilder<'f1, 'f2, I1, SetExistOk<S>>where
S::ExistOk: IsUnset,
Sourcepub fn space_sdk(
self,
value: impl Into<String>,
) -> HFClientCreateRepositoryBuilder<'f1, 'f2, I1, SetSpaceSdk<S>>where
S::SpaceSdk: IsUnset,
pub fn space_sdk(
self,
value: impl Into<String>,
) -> HFClientCreateRepositoryBuilder<'f1, 'f2, I1, SetSpaceSdk<S>>where
S::SpaceSdk: IsUnset,
Optional (Some / Option setters).
SDK for a Space (e.g., "gradio", "streamlit", "docker"). Required when repo_type is
RepoTypeSpace; ignored for other repo kinds.
Sourcepub fn maybe_space_sdk(
self,
value: Option<impl Into<String>>,
) -> HFClientCreateRepositoryBuilder<'f1, 'f2, I1, SetSpaceSdk<S>>where
S::SpaceSdk: IsUnset,
pub fn maybe_space_sdk(
self,
value: Option<impl Into<String>>,
) -> HFClientCreateRepositoryBuilder<'f1, 'f2, I1, SetSpaceSdk<S>>where
S::SpaceSdk: IsUnset,
Optional (Some / Option setters).
SDK for a Space (e.g., "gradio", "streamlit", "docker"). Required when repo_type is
RepoTypeSpace; ignored for other repo kinds.
Trait Implementations§
Source§impl<'f1, 'f2, I1, S: State> Clone for HFClientCreateRepositoryBuilder<'f1, 'f2, I1, S>
impl<'f1, 'f2, I1, S: State> Clone for HFClientCreateRepositoryBuilder<'f1, 'f2, I1, S>
Auto Trait Implementations§
impl<'f1, 'f2, I1, S = Empty> !RefUnwindSafe for HFClientCreateRepositoryBuilder<'f1, 'f2, I1, S>
impl<'f1, 'f2, I1, S = Empty> !UnwindSafe for HFClientCreateRepositoryBuilder<'f1, 'f2, I1, S>
impl<'f1, 'f2, I1, S> Freeze for HFClientCreateRepositoryBuilder<'f1, 'f2, I1, S>where
I1: Freeze,
impl<'f1, 'f2, I1, S> Send for HFClientCreateRepositoryBuilder<'f1, 'f2, I1, S>
impl<'f1, 'f2, I1, S> Sync for HFClientCreateRepositoryBuilder<'f1, 'f2, I1, S>
impl<'f1, 'f2, I1, S> Unpin for HFClientCreateRepositoryBuilder<'f1, 'f2, I1, S>where
I1: Unpin,
impl<'f1, 'f2, I1, S> UnsafeUnpin for HFClientCreateRepositoryBuilder<'f1, 'f2, I1, S>where
I1: UnsafeUnpin,
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 more