pub struct Config {
pub schema: Option<String>,
pub contract: String,
pub settings: Settings,
pub fixed: Vec<Vec<String>>,
pub linked: Vec<Vec<String>>,
pub workspace_tags: BTreeMap<String, WorkspaceTagConfig>,
pub discovery: DiscoveryConfig,
pub release_units: BTreeMap<String, ReleaseUnitConfig>,
}Expand description
Complete workspace configuration.
Fields§
§schema: Option<String>Optional schema URL for editor and validation tooling.
contract: StringVersioned release-semantics contract.
settings: SettingsWorkspace-wide release settings.
fixed: Vec<Vec<String>>Fixed release groups using Changesets semantics.
linked: Vec<Vec<String>>Linked release groups using Changesets semantics.
Repository-level release tag streams.
discovery: DiscoveryConfigReceipts for discovery candidates already resolved by initialization.
release_units: BTreeMap<String, ReleaseUnitConfig>Release-unit inventory keyed by stable release-unit id.
Implementations§
Source§impl Config
impl Config
Sourcepub fn primary_tag<'a>(
&'a self,
release_unit_id: &str,
) -> Result<(&'a str, &'a TagConfig)>
pub fn primary_tag<'a>( &'a self, release_unit_id: &str, ) -> Result<(&'a str, &'a TagConfig)>
Return the configured primary tag for a release unit.
Sourcepub fn release_unit_tag_id(release_unit_id: &str, tag_id: &str) -> String
pub fn release_unit_tag_id(release_unit_id: &str, tag_id: &str) -> String
Canonical id for a named release-unit tag.
Sourcepub fn workspace_tag_id(tag_id: &str) -> String
pub fn workspace_tag_id(tag_id: &str) -> String
Canonical id for a named workspace tag.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Config
impl<'de> Deserialize<'de> for Config
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
impl Eq for Config
impl StructuralPartialEq for Config
Auto Trait Implementations§
impl Freeze for Config
impl RefUnwindSafe for Config
impl Send for Config
impl Sync for Config
impl Unpin for Config
impl UnsafeUnpin for Config
impl UnwindSafe for Config
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,
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§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.