pub struct ReleasePlan {
pub schema_version: u32,
pub release_id: String,
pub source_revision: String,
pub targets: Vec<PlannedTarget>,
}Expand description
Canonically ordered pure release planning result.
Fields§
§schema_version: u32Schema version exactly 1.
release_id: StringOpaque release id.
source_revision: StringOpaque source revision.
targets: Vec<PlannedTarget>Target plans sorted by canonical triple.
Implementations§
Source§impl ReleasePlan
impl ReleasePlan
Sourcepub fn validate(&self) -> Result<(), CoreError>
pub fn validate(&self) -> Result<(), CoreError>
Validate the plan’s bounds and the agreement between each declared floor and the floor status the plan states for it.
A plan that declares a floor and does not state a status for it is invalid: the status is a pure function of the policy, so a missing or contradictory status fails closed.
Trait Implementations§
Source§impl Clone for ReleasePlan
impl Clone for ReleasePlan
Source§impl Debug for ReleasePlan
impl Debug for ReleasePlan
Source§impl<'de> Deserialize<'de> for ReleasePlan
impl<'de> Deserialize<'de> for ReleasePlan
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 ReleasePlan
Source§impl PartialEq for ReleasePlan
impl PartialEq for ReleasePlan
Source§impl Serialize for ReleasePlan
impl Serialize for ReleasePlan
impl StructuralPartialEq for ReleasePlan
Auto Trait Implementations§
impl Forget for ReleasePlan
impl Freeze for ReleasePlan
impl Move for ReleasePlan
impl RefUnwindSafe for ReleasePlan
impl Send for ReleasePlan
impl Sync for ReleasePlan
impl Unpin for ReleasePlan
impl UnsafeUnpin for ReleasePlan
impl UnwindSafe for ReleasePlan
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.