pub struct BuildIdentityV1 {
pub schema_id: String,
pub format_version: u16,
pub artifact_version: String,
pub target: String,
pub native_api_sha256: String,
pub configuration_schema_sha256: String,
pub supply_contract_sha256: String,
pub source_binding: BuildSourceBindingV1,
}Expand description
Closed executable projection compared with the outer supply index.
Fields§
§schema_id: String§format_version: u16§artifact_version: String§target: String§native_api_sha256: String§configuration_schema_sha256: String§supply_contract_sha256: String§source_binding: BuildSourceBindingV1Implementations§
Source§impl BuildIdentityV1
impl BuildIdentityV1
Sourcepub fn current_with_source_binding(source_binding: BuildSourceBindingV1) -> Self
pub fn current_with_source_binding(source_binding: BuildSourceBindingV1) -> Self
Constructs this artifact target’s identity with a leaf-executable source binding. Keeping revision-specific values at executable leaves prevents them from invalidating every foundational workspace crate.
Sourcepub fn validate(&self) -> Result<(), BuildIdentityError>
pub fn validate(&self) -> Result<(), BuildIdentityError>
Validates a decoded projection without trusting its producer.
Sourcepub fn encode_canonical(&self) -> Result<Vec<u8>, BuildIdentityError>
pub fn encode_canonical(&self) -> Result<Vec<u8>, BuildIdentityError>
Encodes the exact compact JSON command projection.
Sourcepub fn decode_canonical(bytes: &[u8]) -> Result<Self, BuildIdentityError>
pub fn decode_canonical(bytes: &[u8]) -> Result<Self, BuildIdentityError>
Decodes one bounded canonical build-identity document.
Trait Implementations§
Source§impl Clone for BuildIdentityV1
impl Clone for BuildIdentityV1
Source§impl Debug for BuildIdentityV1
impl Debug for BuildIdentityV1
Source§impl<'de> Deserialize<'de> for BuildIdentityV1
impl<'de> Deserialize<'de> for BuildIdentityV1
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 BuildIdentityV1
Source§impl PartialEq for BuildIdentityV1
impl PartialEq for BuildIdentityV1
Source§impl Serialize for BuildIdentityV1
impl Serialize for BuildIdentityV1
impl StructuralPartialEq for BuildIdentityV1
Auto Trait Implementations§
impl Freeze for BuildIdentityV1
impl RefUnwindSafe for BuildIdentityV1
impl Send for BuildIdentityV1
impl Sync for BuildIdentityV1
impl Unpin for BuildIdentityV1
impl UnsafeUnpin for BuildIdentityV1
impl UnwindSafe for BuildIdentityV1
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