pub struct SelfUpdateBuilder<'f1, 'f2, 'f3, 'f4, S: State = Empty> { /* private fields */ }Expand description
Use builder syntax to set the inputs and finish with build().
Implementations§
Source§impl<'f1, 'f2, 'f3, 'f4, S: State> SelfUpdateBuilder<'f1, 'f2, 'f3, 'f4, S>
impl<'f1, 'f2, 'f3, 'f4, S: State> SelfUpdateBuilder<'f1, 'f2, 'f3, 'f4, S>
Sourcepub async fn build(self) -> Result<SelfUpdate, Error>where
S: IsComplete,
pub async fn build(self) -> Result<SelfUpdate, Error>where
S: IsComplete,
Finishes building and performs the requested action.
Sourcepub fn owner(
self,
value: &'f1 str,
) -> SelfUpdateBuilder<'f1, 'f2, 'f3, 'f4, SetOwner<S>>where
S::Owner: IsUnset,
pub fn owner(
self,
value: &'f1 str,
) -> SelfUpdateBuilder<'f1, 'f2, 'f3, 'f4, SetOwner<S>>where
S::Owner: IsUnset,
Required.
Sourcepub fn repo(
self,
value: &'f2 str,
) -> SelfUpdateBuilder<'f1, 'f2, 'f3, 'f4, SetRepo<S>>where
S::Repo: IsUnset,
pub fn repo(
self,
value: &'f2 str,
) -> SelfUpdateBuilder<'f1, 'f2, 'f3, 'f4, SetRepo<S>>where
S::Repo: IsUnset,
Required.
Sourcepub fn auth_token(
self,
value: &'f3 str,
) -> SelfUpdateBuilder<'f1, 'f2, 'f3, 'f4, SetAuthToken<S>>where
S::AuthToken: IsUnset,
pub fn auth_token(
self,
value: &'f3 str,
) -> SelfUpdateBuilder<'f1, 'f2, 'f3, 'f4, SetAuthToken<S>>where
S::AuthToken: IsUnset,
Sourcepub fn maybe_auth_token(
self,
value: Option<&'f3 str>,
) -> SelfUpdateBuilder<'f1, 'f2, 'f3, 'f4, SetAuthToken<S>>where
S::AuthToken: IsUnset,
pub fn maybe_auth_token(
self,
value: Option<&'f3 str>,
) -> SelfUpdateBuilder<'f1, 'f2, 'f3, 'f4, SetAuthToken<S>>where
S::AuthToken: IsUnset,
Sourcepub fn bin_name(
self,
value: &'f4 str,
) -> SelfUpdateBuilder<'f1, 'f2, 'f3, 'f4, SetBinName<S>>where
S::BinName: IsUnset,
pub fn bin_name(
self,
value: &'f4 str,
) -> SelfUpdateBuilder<'f1, 'f2, 'f3, 'f4, SetBinName<S>>where
S::BinName: IsUnset,
Required.
Sourcepub fn current_version(
self,
value: Version,
) -> SelfUpdateBuilder<'f1, 'f2, 'f3, 'f4, SetCurrentVersion<S>>where
S::CurrentVersion: IsUnset,
pub fn current_version(
self,
value: Version,
) -> SelfUpdateBuilder<'f1, 'f2, 'f3, 'f4, SetCurrentVersion<S>>where
S::CurrentVersion: IsUnset,
Required.
Sourcepub fn show_release_body(
self,
value: bool,
) -> SelfUpdateBuilder<'f1, 'f2, 'f3, 'f4, SetShowReleaseBody<S>>where
S::ShowReleaseBody: IsUnset,
pub fn show_release_body(
self,
value: bool,
) -> SelfUpdateBuilder<'f1, 'f2, 'f3, 'f4, SetShowReleaseBody<S>>where
S::ShowReleaseBody: IsUnset,
Required.
Sourcepub fn proxy(
self,
value: Url,
) -> SelfUpdateBuilder<'f1, 'f2, 'f3, 'f4, SetProxy<S>>where
S::Proxy: IsUnset,
pub fn proxy(
self,
value: Url,
) -> SelfUpdateBuilder<'f1, 'f2, 'f3, 'f4, SetProxy<S>>where
S::Proxy: IsUnset,
Sourcepub fn maybe_proxy(
self,
value: Option<Url>,
) -> SelfUpdateBuilder<'f1, 'f2, 'f3, 'f4, SetProxy<S>>where
S::Proxy: IsUnset,
pub fn maybe_proxy(
self,
value: Option<Url>,
) -> SelfUpdateBuilder<'f1, 'f2, 'f3, 'f4, SetProxy<S>>where
S::Proxy: IsUnset,
Sourcepub fn no_proxy(
self,
value: bool,
) -> SelfUpdateBuilder<'f1, 'f2, 'f3, 'f4, SetNoProxy<S>>where
S::NoProxy: IsUnset,
pub fn no_proxy(
self,
value: bool,
) -> SelfUpdateBuilder<'f1, 'f2, 'f3, 'f4, SetNoProxy<S>>where
S::NoProxy: IsUnset,
Sourcepub fn maybe_no_proxy(
self,
value: Option<bool>,
) -> SelfUpdateBuilder<'f1, 'f2, 'f3, 'f4, SetNoProxy<S>>where
S::NoProxy: IsUnset,
pub fn maybe_no_proxy(
self,
value: Option<bool>,
) -> SelfUpdateBuilder<'f1, 'f2, 'f3, 'f4, SetNoProxy<S>>where
S::NoProxy: IsUnset,
Sourcepub fn cert_path(
self,
value: PathBuf,
) -> SelfUpdateBuilder<'f1, 'f2, 'f3, 'f4, SetCertPath<S>>where
S::CertPath: IsUnset,
pub fn cert_path(
self,
value: PathBuf,
) -> SelfUpdateBuilder<'f1, 'f2, 'f3, 'f4, SetCertPath<S>>where
S::CertPath: IsUnset,
Sourcepub fn maybe_cert_path(
self,
value: Option<PathBuf>,
) -> SelfUpdateBuilder<'f1, 'f2, 'f3, 'f4, SetCertPath<S>>where
S::CertPath: IsUnset,
pub fn maybe_cert_path(
self,
value: Option<PathBuf>,
) -> SelfUpdateBuilder<'f1, 'f2, 'f3, 'f4, SetCertPath<S>>where
S::CertPath: IsUnset,
Auto Trait Implementations§
impl<'f1, 'f2, 'f3, 'f4, S> Freeze for SelfUpdateBuilder<'f1, 'f2, 'f3, 'f4, S>
impl<'f1, 'f2, 'f3, 'f4, S> RefUnwindSafe for SelfUpdateBuilder<'f1, 'f2, 'f3, 'f4, S>
impl<'f1, 'f2, 'f3, 'f4, S> Send for SelfUpdateBuilder<'f1, 'f2, 'f3, 'f4, S>
impl<'f1, 'f2, 'f3, 'f4, S> Sync for SelfUpdateBuilder<'f1, 'f2, 'f3, 'f4, S>
impl<'f1, 'f2, 'f3, 'f4, S> Unpin for SelfUpdateBuilder<'f1, 'f2, 'f3, 'f4, S>
impl<'f1, 'f2, 'f3, 'f4, S> UnwindSafe for SelfUpdateBuilder<'f1, 'f2, 'f3, 'f4, 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> 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