pub struct HFRepositorySyncCreateCommitBuilder<'f1, T: RepoType, S: State = Empty> { /* private fields */ }Expand description
Use builder syntax to set the inputs and finish with send().
Implementations§
Source§impl<'f1, T: RepoType, S: State> HFRepositorySyncCreateCommitBuilder<'f1, T, S>
impl<'f1, T: RepoType, S: State> HFRepositorySyncCreateCommitBuilder<'f1, T, S>
Sourcepub fn send(self) -> HFResult<CommitInfo>where
S: IsComplete,
pub fn send(self) -> HFResult<CommitInfo>where
S: IsComplete,
Finishes building and performs the requested action.
Sourcepub fn operations(
self,
value: Vec<CommitOperation>,
) -> HFRepositorySyncCreateCommitBuilder<'f1, T, SetOperations<S>>where
S::Operations: IsUnset,
pub fn operations(
self,
value: Vec<CommitOperation>,
) -> HFRepositorySyncCreateCommitBuilder<'f1, T, SetOperations<S>>where
S::Operations: IsUnset,
Required.
Sourcepub fn commit_message(
self,
value: impl Into<String>,
) -> HFRepositorySyncCreateCommitBuilder<'f1, T, SetCommitMessage<S>>where
S::CommitMessage: IsUnset,
pub fn commit_message(
self,
value: impl Into<String>,
) -> HFRepositorySyncCreateCommitBuilder<'f1, T, SetCommitMessage<S>>where
S::CommitMessage: IsUnset,
Required.
Sourcepub fn commit_description(
self,
value: impl Into<String>,
) -> HFRepositorySyncCreateCommitBuilder<'f1, T, SetCommitDescription<S>>where
S::CommitDescription: IsUnset,
pub fn commit_description(
self,
value: impl Into<String>,
) -> HFRepositorySyncCreateCommitBuilder<'f1, T, SetCommitDescription<S>>where
S::CommitDescription: IsUnset,
Sourcepub fn maybe_commit_description(
self,
value: Option<impl Into<String>>,
) -> HFRepositorySyncCreateCommitBuilder<'f1, T, SetCommitDescription<S>>where
S::CommitDescription: IsUnset,
pub fn maybe_commit_description(
self,
value: Option<impl Into<String>>,
) -> HFRepositorySyncCreateCommitBuilder<'f1, T, SetCommitDescription<S>>where
S::CommitDescription: IsUnset,
Sourcepub fn revision(
self,
value: impl Into<String>,
) -> HFRepositorySyncCreateCommitBuilder<'f1, T, SetRevision<S>>where
S::Revision: IsUnset,
pub fn revision(
self,
value: impl Into<String>,
) -> HFRepositorySyncCreateCommitBuilder<'f1, T, SetRevision<S>>where
S::Revision: IsUnset,
Sourcepub fn maybe_revision(
self,
value: Option<impl Into<String>>,
) -> HFRepositorySyncCreateCommitBuilder<'f1, T, SetRevision<S>>where
S::Revision: IsUnset,
pub fn maybe_revision(
self,
value: Option<impl Into<String>>,
) -> HFRepositorySyncCreateCommitBuilder<'f1, T, SetRevision<S>>where
S::Revision: IsUnset,
Sourcepub fn create_pr(
self,
value: bool,
) -> HFRepositorySyncCreateCommitBuilder<'f1, T, SetCreatePr<S>>where
S::CreatePr: IsUnset,
pub fn create_pr(
self,
value: bool,
) -> HFRepositorySyncCreateCommitBuilder<'f1, T, SetCreatePr<S>>where
S::CreatePr: IsUnset,
Sourcepub fn maybe_create_pr(
self,
value: Option<bool>,
) -> HFRepositorySyncCreateCommitBuilder<'f1, T, SetCreatePr<S>>where
S::CreatePr: IsUnset,
pub fn maybe_create_pr(
self,
value: Option<bool>,
) -> HFRepositorySyncCreateCommitBuilder<'f1, T, SetCreatePr<S>>where
S::CreatePr: IsUnset,
Sourcepub fn parent_commit(
self,
value: impl Into<String>,
) -> HFRepositorySyncCreateCommitBuilder<'f1, T, SetParentCommit<S>>where
S::ParentCommit: IsUnset,
pub fn parent_commit(
self,
value: impl Into<String>,
) -> HFRepositorySyncCreateCommitBuilder<'f1, T, SetParentCommit<S>>where
S::ParentCommit: IsUnset,
Sourcepub fn maybe_parent_commit(
self,
value: Option<impl Into<String>>,
) -> HFRepositorySyncCreateCommitBuilder<'f1, T, SetParentCommit<S>>where
S::ParentCommit: IsUnset,
pub fn maybe_parent_commit(
self,
value: Option<impl Into<String>>,
) -> HFRepositorySyncCreateCommitBuilder<'f1, T, SetParentCommit<S>>where
S::ParentCommit: IsUnset,
Sourcepub fn progress(
self,
value: impl Into<Progress>,
) -> HFRepositorySyncCreateCommitBuilder<'f1, T, SetProgress<S>>where
S::Progress: IsUnset,
pub fn progress(
self,
value: impl Into<Progress>,
) -> HFRepositorySyncCreateCommitBuilder<'f1, T, SetProgress<S>>where
S::Progress: IsUnset,
Sourcepub fn maybe_progress(
self,
value: Option<impl Into<Progress>>,
) -> HFRepositorySyncCreateCommitBuilder<'f1, T, SetProgress<S>>where
S::Progress: IsUnset,
pub fn maybe_progress(
self,
value: Option<impl Into<Progress>>,
) -> HFRepositorySyncCreateCommitBuilder<'f1, T, SetProgress<S>>where
S::Progress: IsUnset,
Trait Implementations§
Source§impl<'f1, T, S: State> Clone for HFRepositorySyncCreateCommitBuilder<'f1, T, S>
impl<'f1, T, S: State> Clone for HFRepositorySyncCreateCommitBuilder<'f1, T, S>
Auto Trait Implementations§
impl<'f1, T, S = Empty> !RefUnwindSafe for HFRepositorySyncCreateCommitBuilder<'f1, T, S>
impl<'f1, T, S = Empty> !UnwindSafe for HFRepositorySyncCreateCommitBuilder<'f1, T, S>
impl<'f1, T, S> Freeze for HFRepositorySyncCreateCommitBuilder<'f1, T, S>
impl<'f1, T, S> Send for HFRepositorySyncCreateCommitBuilder<'f1, T, S>
impl<'f1, T, S> Sync for HFRepositorySyncCreateCommitBuilder<'f1, T, S>
impl<'f1, T, S> Unpin for HFRepositorySyncCreateCommitBuilder<'f1, T, S>
impl<'f1, T, S> UnsafeUnpin for HFRepositorySyncCreateCommitBuilder<'f1, T, S>
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