pub struct ArtifactReference {
pub name: Option<String>,
pub group_id: Option<String>,
pub artifact_id: Option<String>,
pub version: String,
pub name_alias: Option<String>,
}Expand description
Reference to another artifact (used in publishing)
Artifacts can reference other artifacts to establish dependencies. References must use exact versions (no semver ranges) to ensure deterministic builds.
Fields§
§name: Option<String>Name in group/artifact format (alternative to explicit groupId/artifactId)
group_id: Option<String>Explicit group ID (alternative to name)
artifact_id: Option<String>Explicit artifact ID (alternative to name)
version: StringEXACT version only (e.g., “1.2.3”), no ranges
name_alias: Option<String>Optional alias for imports (e.g., “text_message.proto”)
Implementations§
Source§impl ArtifactReference
impl ArtifactReference
Sourcepub fn validate_exact_version(&self) -> Result<()>
pub fn validate_exact_version(&self) -> Result<()>
Validate that the version is exact (no semver ranges)
pub fn resolved_group_id(&self) -> String
pub fn resolved_artifact_id(&self) -> String
Trait Implementations§
Source§impl Clone for ArtifactReference
impl Clone for ArtifactReference
Source§fn clone(&self) -> ArtifactReference
fn clone(&self) -> ArtifactReference
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ArtifactReference
impl Debug for ArtifactReference
Source§impl<'de> Deserialize<'de> for ArtifactReference
impl<'de> Deserialize<'de> for ArtifactReference
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for ArtifactReference
impl RefUnwindSafe for ArtifactReference
impl Send for ArtifactReference
impl Sync for ArtifactReference
impl Unpin for ArtifactReference
impl UnwindSafe for ArtifactReference
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