pub struct GitlabCiDependency {
pub name: PackageName,
pub name_range: Range,
pub version_req: Option<VersionReq>,
pub version_range: Option<Range>,
pub version_literal: Option<String>,
pub source: DependencySource,
pub is_plain_scalar: bool,
pub kind: IncludeKind,
pub host: HostRef,
pub pin: Option<PinStyle>,
pub project_path: String,
}Expand description
Parsed include: dependency from a .gitlab-ci.yml-syntax file, with position
tracking.
Fields§
§name: PackageNameHost-qualified when the host is known: {host}/{project_path} for IncludeKind::Project,
{host}/{project_path}/{component_name} for IncludeKind::Component. The bare
path alone (no host prefix) when Self::host is HostRef::Unresolved (spec
§3.1 — this also means every name-keyed structure is automatically per-instance).
name_range: RangeLSP range of the project:/component: value text.
version_req: Option<VersionReq>Normalized version requirement: the ref/pin text, or None for a project:
include with no ref: at all (GitLab defaults that to the project’s default
branch, which this crate cannot resolve to a concrete version).
version_range: Option<Range>LSP range of the ref/pin text.
version_literal: Option<String>The raw literal text, when it differs from version_req (unused today — no
GitLab CI pin form carries a comment-derived requirement the way GitHub Actions’
SHA-with-comment form does; kept for deps_core::ecosystem::Dependency parity).
source: DependencySourceDependency source: DependencySource::AlternateRegistry when Self::host is
known and its route was registered; DependencySource::CustomRegistry otherwise
(unresolved host, or a route the process-wide cap refused) — see spec §3.2.
is_plain_scalar: boolWhether the whole include-entry value was written as a plain (unquoted) YAML
scalar, mirroring deps-github-actions’s identical field.
kind: IncludeKindWhich include: form this dependency came from.
host: HostRefThis dependency’s resolved (or not-yet-resolvable) host.
pin: Option<PinStyle>How the ref/pin is classified; None only for a hostless-ref project: include
(no ref: key at all).
project_path: StringThe bare org/sub/proj[/component] path, without a host prefix — kept for URL
construction and the registry’s own fetch-path use.
Trait Implementations§
Source§impl Clone for GitlabCiDependency
impl Clone for GitlabCiDependency
Source§fn clone(&self) -> GitlabCiDependency
fn clone(&self) -> GitlabCiDependency
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for GitlabCiDependency
impl Debug for GitlabCiDependency
Source§impl Dependency for GitlabCiDependency
impl Dependency for GitlabCiDependency
Source§fn name(&self) -> &PackageName
fn name(&self) -> &PackageName
Source§fn name_range(&self) -> Range
fn name_range(&self) -> Range
Source§fn version_requirement(&self) -> Option<&VersionReq>
fn version_requirement(&self) -> Option<&VersionReq>
Source§fn version_range(&self) -> Option<Range>
fn version_range(&self) -> Option<Range>
Source§fn source(&self) -> DependencySource
fn source(&self) -> DependencySource
Source§fn version_literal(&self) -> Option<&str>
fn version_literal(&self) -> Option<&str>
Source§fn features_range(&self) -> Option<Range>
fn features_range(&self) -> Option<Range>
Source§fn markers(&self) -> Option<&str>
fn markers(&self) -> Option<&str>
python_version >= '3.8'). Ecosystem-specific, None if not supported
or not present on this dependency.Source§fn markers_range(&self) -> Option<Range>
fn markers_range(&self) -> Option<Range>
None if not supported or not present).impl Eq for GitlabCiDependency
Source§impl PartialEq for GitlabCiDependency
impl PartialEq for GitlabCiDependency
Source§fn eq(&self, other: &GitlabCiDependency) -> bool
fn eq(&self, other: &GitlabCiDependency) -> bool
self and other values to be equal, and is used by ==.impl StructuralPartialEq for GitlabCiDependency
Auto Trait Implementations§
impl Freeze for GitlabCiDependency
impl RefUnwindSafe for GitlabCiDependency
impl Send for GitlabCiDependency
impl Sync for GitlabCiDependency
impl Unpin for GitlabCiDependency
impl UnsafeUnpin for GitlabCiDependency
impl UnwindSafe for GitlabCiDependency
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.