pub struct PackConfig {
pub schema_version: u32,
pub targets: Vec<TargetPolicy>,
}Expand description
Strict PackConfig v1 document.
Fields§
§schema_version: u32Schema version exactly 1.
targets: Vec<TargetPolicy>Per-target producer policies.
Implementations§
Source§impl PackConfig
impl PackConfig
Sourcepub fn resolve(
&self,
contract: &DistributionContract,
release_id: &str,
source_revision: &str,
selected: &[String],
) -> Result<ReleasePlan, CoreError>
pub fn resolve( &self, contract: &DistributionContract, release_id: &str, source_revision: &str, selected: &[String], ) -> Result<ReleasePlan, CoreError>
Resolve selected targets against the distribution contract without side effects.
Trait Implementations§
Source§impl Clone for PackConfig
impl Clone for PackConfig
Source§impl Debug for PackConfig
impl Debug for PackConfig
Source§impl<'de> Deserialize<'de> for PackConfig
impl<'de> Deserialize<'de> for PackConfig
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 PackConfig
Source§impl PartialEq for PackConfig
impl PartialEq for PackConfig
Source§impl Serialize for PackConfig
impl Serialize for PackConfig
impl StructuralPartialEq for PackConfig
Auto Trait Implementations§
impl Forget for PackConfig
impl Freeze for PackConfig
impl Move for PackConfig
impl RefUnwindSafe for PackConfig
impl Send for PackConfig
impl Sync for PackConfig
impl Unpin for PackConfig
impl UnsafeUnpin for PackConfig
impl UnwindSafe for PackConfig
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.