pub struct SnapshotArtifactDescriptor {
pub schema_version: u32,
pub protocol_version: ProtocolVersion,
pub operation_id: String,
pub job_id: String,
pub artifact: ArtifactRecord,
pub compile: CompilePhaseEvidence,
}Expand description
Exact unsigned archive record and compile evidence preceding artifact bytes.
Fields§
§schema_version: u32Snapshot-session message schema.
protocol_version: ProtocolVersionNegotiated Ferry Remote Build Protocol version.
operation_id: StringOperation identifier from the submitted request.
job_id: StringProvider-owned job identifier.
artifact: ArtifactRecordExact returned file name, size, and SHA-256.
compile: CompilePhaseEvidenceCredential-free physical-iPhone compile evidence.
Implementations§
Source§impl SnapshotArtifactDescriptor
impl SnapshotArtifactDescriptor
Sourcepub fn new(
operation_id: impl Into<String>,
artifact: ArtifactRecord,
compile: CompilePhaseEvidence,
) -> RemoteBuildResult<Self>
pub fn new( operation_id: impl Into<String>, artifact: ArtifactRecord, compile: CompilePhaseEvidence, ) -> RemoteBuildResult<Self>
Construct an artifact descriptor bound to compile evidence.
§Errors
Rejects unsafe identity, malformed evidence, or artifact/evidence mismatch.
Sourcepub fn validate(&self) -> RemoteBuildResult<()>
pub fn validate(&self) -> RemoteBuildResult<()>
Validate exact unsigned-XCArchive artifact and public compile evidence.
§Errors
Rejects unsupported schemas, unsafe public text, invalid hashes, oversized artifacts, or evidence that does not bind the returned file.
Trait Implementations§
Source§impl Clone for SnapshotArtifactDescriptor
impl Clone for SnapshotArtifactDescriptor
Source§impl Debug for SnapshotArtifactDescriptor
impl Debug for SnapshotArtifactDescriptor
Source§impl<'de> Deserialize<'de> for SnapshotArtifactDescriptor
impl<'de> Deserialize<'de> for SnapshotArtifactDescriptor
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 SnapshotArtifactDescriptor
Source§impl JsonSchema for SnapshotArtifactDescriptor
impl JsonSchema for SnapshotArtifactDescriptor
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreimpl StructuralPartialEq for SnapshotArtifactDescriptor
Auto Trait Implementations§
impl Freeze for SnapshotArtifactDescriptor
impl RefUnwindSafe for SnapshotArtifactDescriptor
impl Send for SnapshotArtifactDescriptor
impl Sync for SnapshotArtifactDescriptor
impl Unpin for SnapshotArtifactDescriptor
impl UnsafeUnpin for SnapshotArtifactDescriptor
impl UnwindSafe for SnapshotArtifactDescriptor
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.