pub enum BuildSourceBindingV1 {
Unbound,
ExactDevelopmentSupply {
revision: String,
tree: String,
clean_tree: bool,
source_state_sha256: String,
},
}Expand description
Source binding carried by a product executable.
Variants§
Unbound
Ordinary source-tree builds make no package-source claim.
ExactDevelopmentSupply
Supply builds bind one exact clean revision and tree.
Implementations§
Source§impl BuildSourceBindingV1
impl BuildSourceBindingV1
Sourcepub fn from_executable_environment(
revision: Option<&str>,
tree: Option<&str>,
clean_tree: Option<&str>,
source_state_sha256: Option<&str>,
) -> Self
pub fn from_executable_environment( revision: Option<&str>, tree: Option<&str>, clean_tree: Option<&str>, source_state_sha256: Option<&str>, ) -> Self
Projects the four all-or-none executable build inputs. A partial or malformed combination remains representable only as an invalid exact binding so the ordinary identity validation path refuses it.
Trait Implementations§
Source§impl Clone for BuildSourceBindingV1
impl Clone for BuildSourceBindingV1
Source§impl Debug for BuildSourceBindingV1
impl Debug for BuildSourceBindingV1
Source§impl<'de> Deserialize<'de> for BuildSourceBindingV1
impl<'de> Deserialize<'de> for BuildSourceBindingV1
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 BuildSourceBindingV1
Source§impl PartialEq for BuildSourceBindingV1
impl PartialEq for BuildSourceBindingV1
Source§impl Serialize for BuildSourceBindingV1
impl Serialize for BuildSourceBindingV1
impl StructuralPartialEq for BuildSourceBindingV1
Auto Trait Implementations§
impl Freeze for BuildSourceBindingV1
impl RefUnwindSafe for BuildSourceBindingV1
impl Send for BuildSourceBindingV1
impl Sync for BuildSourceBindingV1
impl Unpin for BuildSourceBindingV1
impl UnsafeUnpin for BuildSourceBindingV1
impl UnwindSafe for BuildSourceBindingV1
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