pub struct HttpLockEntryBuilder<S: State = Empty> { /* private fields */ }Expand description
Use builder syntax to set the inputs and finish with build().
Implementations§
Source§impl<S: State> HttpLockEntryBuilder<S>
impl<S: State> HttpLockEntryBuilder<S>
Sourcepub fn build(self) -> HttpLockEntrywhere
S: IsComplete,
pub fn build(self) -> HttpLockEntrywhere
S: IsComplete,
Finish building and return the requested object
Sourcepub fn name(self, value: impl Into<String>) -> HttpLockEntryBuilder<SetName<S>>where
S::Name: IsUnset,
pub fn name(self, value: impl Into<String>) -> HttpLockEntryBuilder<SetName<S>>where
S::Name: IsUnset,
Required.
The name of the dependency.
Sourcepub fn version(
self,
value: impl Into<String>,
) -> HttpLockEntryBuilder<SetVersion<S>>where
S::Version: IsUnset,
pub fn version(
self,
value: impl Into<String>,
) -> HttpLockEntryBuilder<SetVersion<S>>where
S::Version: IsUnset,
Required.
The resolved version of the dependency (not necessarily matches the version requirement of the dependency).
If the version req is a semver range, then this will be the exact version that was resolved.
Sourcepub fn url(self, value: impl Into<String>) -> HttpLockEntryBuilder<SetUrl<S>>where
S::Url: IsUnset,
pub fn url(self, value: impl Into<String>) -> HttpLockEntryBuilder<SetUrl<S>>where
S::Url: IsUnset,
Required.
The URL from where the dependency was downloaded.
Sourcepub fn checksum(
self,
value: impl Into<String>,
) -> HttpLockEntryBuilder<SetChecksum<S>>where
S::Checksum: IsUnset,
pub fn checksum(
self,
value: impl Into<String>,
) -> HttpLockEntryBuilder<SetChecksum<S>>where
S::Checksum: IsUnset,
Required.
The checksum of the downloaded zip file.
Sourcepub fn integrity(
self,
value: impl Into<String>,
) -> HttpLockEntryBuilder<SetIntegrity<S>>where
S::Integrity: IsUnset,
pub fn integrity(
self,
value: impl Into<String>,
) -> HttpLockEntryBuilder<SetIntegrity<S>>where
S::Integrity: IsUnset,
Required.
The integrity hash of the downloaded zip file after extraction.
Auto Trait Implementations§
impl<S> Freeze for HttpLockEntryBuilder<S>
impl<S> RefUnwindSafe for HttpLockEntryBuilder<S>
impl<S> Send for HttpLockEntryBuilder<S>
impl<S> Sync for HttpLockEntryBuilder<S>
impl<S> Unpin for HttpLockEntryBuilder<S>
impl<S> UnsafeUnpin for HttpLockEntryBuilder<S>
impl<S> UnwindSafe for HttpLockEntryBuilder<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