pub struct DeclaredTarget {
pub id: RegistryId,
pub name: TargetName,
pub what: Prose,
pub published_by: Prose,
pub manifest: Option<RepositoryPath>,
pub covers: Vec<RegistryId>,
pub adoption_instructions: Option<InstructionTemplate>,
}Expand description
One consumable artifact: something a dependent names in order to depend on it.
Fields§
§id: RegistryIdThe registry-qualified identifier a registry serves this artifact under.
name: TargetNameThe short name this target is known by — the name the host document gives it and the name a consumer’s plan names it by.
It cannot be derived from id: one repository publishes both
pypi:onejudge-cli and pypi:onejudge, so the registry half of an
identifier names neither uniquely.
what: ProseOne sentence saying what a dependent gets.
published_by: ProseThe workflow and job that publish it, and the manifest its name and version come from.
manifest: Option<RepositoryPath>The manifest this target’s version is read from.
covers: Vec<RegistryId>Identifiers this target’s release also ships, which are not targets of their own because nothing depends on one by name.
A list of identifiers rather than a pointer at a manifest field, so a reader parses one shape.
adoption_instructions: Option<InstructionTemplate>The minijinja template a consumer of this target is instructed by.
Producer knowledge. Absent means the consumer’s own default. Declared from schema version 3.
Trait Implementations§
Source§impl Clone for DeclaredTarget
impl Clone for DeclaredTarget
Source§impl Debug for DeclaredTarget
impl Debug for DeclaredTarget
Source§impl<'de> Deserialize<'de> for DeclaredTarget
impl<'de> Deserialize<'de> for DeclaredTarget
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>,
impl Eq for DeclaredTarget
Source§impl PartialEq for DeclaredTarget
impl PartialEq for DeclaredTarget
Source§impl Serialize for DeclaredTarget
impl Serialize for DeclaredTarget
impl StructuralPartialEq for DeclaredTarget
Auto Trait Implementations§
impl Freeze for DeclaredTarget
impl RefUnwindSafe for DeclaredTarget
impl Send for DeclaredTarget
impl Sync for DeclaredTarget
impl Unpin for DeclaredTarget
impl UnsafeUnpin for DeclaredTarget
impl UnwindSafe for DeclaredTarget
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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
key and return true if they are equal.