pub struct SupportCoreV1 {
pub invariant: String,
pub retained_ids: Vec<String>,
pub removable_ids: Vec<String>,
pub verified: bool,
}Expand description
Minimal retained support preserving an invariant.
Fields§
§invariant: StringThe invariant this support core preserves.
retained_ids: Vec<String>Minimal artifact IDs that must be retained.
removable_ids: Vec<String>Artifact IDs that can be safely removed.
verified: boolWhether the support core was verified.
Implementations§
Source§impl SupportCoreV1
impl SupportCoreV1
Sourcepub fn would_break(&self, artifact_id: &str) -> bool
pub fn would_break(&self, artifact_id: &str) -> bool
Check if removing an artifact would break this support core.
Trait Implementations§
Source§impl Clone for SupportCoreV1
impl Clone for SupportCoreV1
Source§fn clone(&self) -> SupportCoreV1
fn clone(&self) -> SupportCoreV1
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SupportCoreV1
impl Debug for SupportCoreV1
Source§impl<'de> Deserialize<'de> for SupportCoreV1
impl<'de> Deserialize<'de> for SupportCoreV1
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
Auto Trait Implementations§
impl Freeze for SupportCoreV1
impl RefUnwindSafe for SupportCoreV1
impl Send for SupportCoreV1
impl Sync for SupportCoreV1
impl Unpin for SupportCoreV1
impl UnsafeUnpin for SupportCoreV1
impl UnwindSafe for SupportCoreV1
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