pub struct Declaration {
pub schema_version: u32,
pub probe: Option<RepositoryPath>,
pub targets: Vec<DeclaredTarget>,
pub retired: Vec<RetiredArtifact>,
}Expand description
What one repository publishes, as its own release-targets.toml declares it.
The order of targets is the document’s own — the schema says
publication order — and is preserved by both reading and rendering, because a
reader that has to publish in order has nowhere else to learn it from.
Fields§
§schema_version: u32The schema this document is written against. SCHEMA_VERSION is the shape
declared here.
probe: Option<RepositoryPath>The script that answers what a registry currently serves for one
DeclaredTarget::id.
Optional: a repository whose every target is answered some other way declares none, and a consumer then has nothing here to run.
targets: Vec<DeclaredTarget>The consumable artifacts this repository publishes, in publication order.
retired: Vec<RetiredArtifact>What this repository once published and does not any more.
Implementations§
Source§impl Declaration
impl Declaration
Sourcepub fn target(&self, name: &TargetName) -> Option<&DeclaredTarget>
pub fn target(&self, name: &TargetName) -> Option<&DeclaredTarget>
The target one short name selects, if this repository declares it.
The short name rather than the identifier, because that is what a host document and a plan node both name a target by.
Trait Implementations§
Source§impl Clone for Declaration
impl Clone for Declaration
Source§impl Debug for Declaration
impl Debug for Declaration
Source§impl<'de> Deserialize<'de> for Declaration
impl<'de> Deserialize<'de> for Declaration
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 Declaration
Source§impl PartialEq for Declaration
impl PartialEq for Declaration
Source§impl Serialize for Declaration
impl Serialize for Declaration
impl StructuralPartialEq for Declaration
Auto Trait Implementations§
impl Freeze for Declaration
impl RefUnwindSafe for Declaration
impl Send for Declaration
impl Sync for Declaration
impl Unpin for Declaration
impl UnsafeUnpin for Declaration
impl UnwindSafe for Declaration
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.