Skip to main content

GitSnapshotStageV1

Struct GitSnapshotStageV1 

Source
pub struct GitSnapshotStageV1 {
Show 18 fields pub schema_version: u32, pub operation_id: String, pub isolation_root_identity: String, pub snapshots_store_identity: String, pub stage_directory_identity: String, pub source_repository: String, pub source_ref: GitSnapshotSourceRef, pub keepalive_ref: GitSnapshotKeepaliveRef, pub source_created_at_ms: u64, pub consent_sha256: String, pub request_template_sha256: String, pub manifest_sha256: String, pub archive: SourceArchive, pub descriptor_sha256: String, pub final_request: IosDeviceBuildRequest, pub archive_file_identity: String, pub descriptor_file_identity: String, pub graph: GitSnapshotObjectGraphV1,
}
Expand description

Compact create-only metadata that binds a private stage to its canonical graph.

Fields§

§schema_version: u32

Stage schema version; currently 1.

§operation_id: String

Exact operation identifier.

§isolation_root_identity: String

Filesystem identity of the private Git isolation root.

§snapshots_store_identity: String

Filesystem identity of the fixed snapshots store.

§stage_directory_identity: String

Filesystem identity of this operation’s create-only stage directory.

§source_repository: String

Exact configured public source repository.

§source_ref: GitSnapshotSourceRef

Exact operation-derived source ref.

§keepalive_ref: GitSnapshotKeepaliveRef

Exact operation-derived local keepalive ref.

§source_created_at_ms: u64

Millisecond timestamp used to derive deterministic commit seconds.

§consent_sha256: String

SHA-256 of the exact zero-write plan accepted by the caller.

§request_template_sha256: String

Canonical request-template SHA-256 embedded in the descriptor.

§manifest_sha256: String

Canonical source-manifest SHA-256.

§archive: SourceArchive

Exact staged archive size and SHA-256.

§descriptor_sha256: String

SHA-256 of the canonical descriptor bytes.

§final_request: IosDeviceBuildRequest

Secret-free final request whose revision is the exact parentless snapshot commit.

§archive_file_identity: String

Filesystem identity of the sealed staged archive.

§descriptor_file_identity: String

Filesystem identity of the sealed staged descriptor.

§graph: GitSnapshotObjectGraphV1

Complete six-object Git graph identity.

Implementations§

Source§

impl GitSnapshotStageV1

Source

pub fn validate_for_descriptor( &self, descriptor: &GitSnapshotDescriptor, ) -> Result<(), GitSnapshotError>

Validate compact fields and their exact canonical descriptor binding.

§Errors

Returns a typed snapshot failure for any schema, identity, digest, ref, descriptor, or object-graph mismatch.

Source

pub fn validate_for_request( &self, descriptor: &GitSnapshotDescriptor, request: &IosDeviceBuildRequest, ) -> Result<(), GitSnapshotError>

Require exact binding to the already-durable final request and commit revision.

§Errors

Returns a typed failure for any final-request, descriptor, manifest, template, operation, repository, ref, or commit mismatch.

Source

pub fn canonical_bytes( &self, descriptor: &GitSnapshotDescriptor, ) -> Result<Vec<u8>, GitSnapshotError>

Encode strict canonical pretty JSON with one trailing newline.

§Errors

Returns a typed snapshot failure when validation, encoding, or size enforcement fails.

Source

pub fn decode( bytes: &[u8], descriptor: &GitSnapshotDescriptor, ) -> Result<Self, GitSnapshotError>

Decode strict JSON and require full descriptor binding.

§Errors

Returns a typed snapshot failure for oversized, non-canonical, unknown, duplicate, or descriptor-mismatched metadata.

Source

pub fn verify_staged_files( &self, isolation_root: &Path, ) -> Result<GitSnapshotDescriptor, GitSnapshotError>

Reopen the exact staged descriptor and archive from this operation’s strict private path.

Both files must retain their persisted single-link filesystem identities. The descriptor must have its exact canonical bytes and SHA-256; the archive must reproduce its exact size and SHA-256. The returned descriptor has already been checked against every stage field.

§Errors

Returns a typed snapshot failure for any path, identity, size, digest, encoding, or binding mismatch.

Trait Implementations§

Source§

impl Clone for GitSnapshotStageV1

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for GitSnapshotStageV1

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'de> Deserialize<'de> for GitSnapshotStageV1

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl PartialEq for GitSnapshotStageV1

Source§

fn eq(&self, other: &Self) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl Serialize for GitSnapshotStageV1

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl StructuralPartialEq for GitSnapshotStageV1

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

Source§

impl<T> DynClone for T
where T: Clone,

Source§

fn __clone_box(&self, _: Private) -> *mut ()

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.