pub struct BuildBindingsV1 {
pub schema_version: u32,
pub targets: BTreeMap<String, Vec<BuildBinding>>,
}Expand description
Strict producer-side BuildBindings schema version 1.
Fields§
§schema_version: u32Schema version, exactly 1.
targets: BTreeMap<String, Vec<BuildBinding>>Bindings for canonical target triple.
Implementations§
Source§impl BuildBindingsV1
impl BuildBindingsV1
Sourcepub fn from_toml(text: &str) -> Result<Self, BuildError>
pub fn from_toml(text: &str) -> Result<Self, BuildError>
Strictly parse TOML bindings.
Sourcepub fn validate_for(
&self,
contract: &DistributionContract,
plan: &ReleasePlan,
) -> Result<(), BuildError>
pub fn validate_for( &self, contract: &DistributionContract, plan: &ReleasePlan, ) -> Result<(), BuildError>
Validate that each plan target’s bindings exactly cover Cargo executable contract slots.
Trait Implementations§
Source§impl Clone for BuildBindingsV1
impl Clone for BuildBindingsV1
Source§impl Debug for BuildBindingsV1
impl Debug for BuildBindingsV1
Source§impl<'de> Deserialize<'de> for BuildBindingsV1
impl<'de> Deserialize<'de> for BuildBindingsV1
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 BuildBindingsV1
Source§impl PartialEq for BuildBindingsV1
impl PartialEq for BuildBindingsV1
Source§impl Serialize for BuildBindingsV1
impl Serialize for BuildBindingsV1
impl StructuralPartialEq for BuildBindingsV1
Auto Trait Implementations§
impl Forget for BuildBindingsV1
impl Freeze for BuildBindingsV1
impl Move for BuildBindingsV1
impl RefUnwindSafe for BuildBindingsV1
impl Send for BuildBindingsV1
impl Sync for BuildBindingsV1
impl Unpin for BuildBindingsV1
impl UnsafeUnpin for BuildBindingsV1
impl UnwindSafe for BuildBindingsV1
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.