pub struct SnapshotBuildStart {
pub schema_version: u32,
pub parameters: SnapshotBuildParameters,
pub source_descriptor_size: u64,
pub source_descriptor_sha256: String,
pub source_archive: SourceArchive,
}Expand description
Initial control frame for one snapshot-build session.
Fields§
§schema_version: u32Snapshot-session message schema.
parameters: SnapshotBuildParametersCompact request fields.
source_descriptor_size: u64Exact separately framed descriptor byte length.
source_descriptor_sha256: StringSHA-256 of the exact separately framed descriptor JSON bytes.
source_archive: SourceArchiveExact separately framed deterministic ZIP size and SHA-256.
Implementations§
Source§impl SnapshotBuildStart
impl SnapshotBuildStart
Sourcepub fn new(
parameters: SnapshotBuildParameters,
source_descriptor_size: u64,
source_descriptor_sha256: impl Into<String>,
source_archive: SourceArchive,
) -> RemoteBuildResult<Self>
pub fn new( parameters: SnapshotBuildParameters, source_descriptor_size: u64, source_descriptor_sha256: impl Into<String>, source_archive: SourceArchive, ) -> RemoteBuildResult<Self>
Construct one bounded source-transfer declaration.
§Errors
Rejects invalid compact parameters, empty/oversized transfers, or malformed hashes.
Sourcepub fn validate(&self) -> RemoteBuildResult<()>
pub fn validate(&self) -> RemoteBuildResult<()>
Validate the bounded transfer declaration before reading large payloads.
§Errors
Rejects unsupported schemas, invalid parameters, size overflow, or malformed hashes.
Sourcepub fn reconstruct_request(
&self,
descriptor: &SourceBundleDescriptor,
limits: SourceArchiveLimits,
) -> RemoteBuildResult<IosDeviceBuildRequest>
pub fn reconstruct_request( &self, descriptor: &SourceBundleDescriptor, limits: SourceArchiveLimits, ) -> RemoteBuildResult<IosDeviceBuildRequest>
Bind the received descriptor to the declared archive and reconstruct the full request.
§Errors
Rejects descriptor/archive substitution or any invalid reconstructed request.
Trait Implementations§
Source§impl Clone for SnapshotBuildStart
impl Clone for SnapshotBuildStart
Source§impl Debug for SnapshotBuildStart
impl Debug for SnapshotBuildStart
Source§impl<'de> Deserialize<'de> for SnapshotBuildStart
impl<'de> Deserialize<'de> for SnapshotBuildStart
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 SnapshotBuildStart
Source§impl JsonSchema for SnapshotBuildStart
impl JsonSchema for SnapshotBuildStart
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 moreSource§impl PartialEq for SnapshotBuildStart
impl PartialEq for SnapshotBuildStart
Source§impl Serialize for SnapshotBuildStart
impl Serialize for SnapshotBuildStart
impl StructuralPartialEq for SnapshotBuildStart
Auto Trait Implementations§
impl Freeze for SnapshotBuildStart
impl RefUnwindSafe for SnapshotBuildStart
impl Send for SnapshotBuildStart
impl Sync for SnapshotBuildStart
impl Unpin for SnapshotBuildStart
impl UnsafeUnpin for SnapshotBuildStart
impl UnwindSafe for SnapshotBuildStart
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.