pub struct HttpDependency {
pub name: String,
pub version_req: String,
pub url: Option<String>,
pub project_root: Option<PathBuf>,
}Expand description
An HTTP dependency config item.
This struct is used to represent an HTTP dependency from the config file.
Fields§
§name: StringThe name of the dependency (user-defined).
version_req: StringThe version requirement string (semver).
Example: >=1.9.3 || ^2.0.0
When no operator is used before the version number, it defaults to = which pins the
version.
url: Option<String>The URL to the dependency.
If omitted, the registry will be contacted to get the download URL for that dependency (by name).
project_root: Option<PathBuf>An optional relative path to the project’s root within the zip file.
The project root is where the soldeer.toml or foundry.toml resides. If no path is provided, then the zip’s root must contain a Soldeer config.
Implementations§
Source§impl HttpDependency
impl HttpDependency
Sourcepub fn builder() -> HttpDependencyBuilder
pub fn builder() -> HttpDependencyBuilder
Create an instance of HttpDependency using the builder syntax
Trait Implementations§
Source§impl Clone for HttpDependency
impl Clone for HttpDependency
Source§fn clone(&self) -> HttpDependency
fn clone(&self) -> HttpDependency
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for HttpDependency
impl Debug for HttpDependency
Source§impl Display for HttpDependency
impl Display for HttpDependency
Source§impl From<&HttpDependency> for Dependency
impl From<&HttpDependency> for Dependency
Source§fn from(dep: &HttpDependency) -> Self
fn from(dep: &HttpDependency) -> Self
Converts to this type from the input type.
Source§impl From<HttpDependency> for Dependency
impl From<HttpDependency> for Dependency
Source§fn from(value: HttpDependency) -> Self
fn from(value: HttpDependency) -> Self
Converts to this type from the input type.
Source§impl From<HttpDependency> for ParsingResult
impl From<HttpDependency> for ParsingResult
Source§fn from(value: HttpDependency) -> Self
fn from(value: HttpDependency) -> Self
Converts to this type from the input type.
Source§impl Hash for HttpDependency
impl Hash for HttpDependency
Source§impl PartialEq for HttpDependency
impl PartialEq for HttpDependency
impl Eq for HttpDependency
impl StructuralPartialEq for HttpDependency
Auto Trait Implementations§
impl Freeze for HttpDependency
impl RefUnwindSafe for HttpDependency
impl Send for HttpDependency
impl Sync for HttpDependency
impl Unpin for HttpDependency
impl UnsafeUnpin for HttpDependency
impl UnwindSafe for HttpDependency
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.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> Pointable for T
impl<T> Pointable for T
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
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.