pub struct WorkspaceRepositorySnapshot {
pub contract_version: u32,
pub resolved_config_sha256: String,
pub definitions: Vec<WorkspaceRepositoryDefinitionDigest>,
pub sources: Vec<WorkspaceRepositorySourceDigest>,
pub git: WorkspaceRepositoryGitProvenance,
pub operation_uuid: Uuid,
pub actor_uuid: Option<Uuid>,
}Expand description
Canonical secret-free desired-state evidence published by repository sync.
Fields§
§contract_version: u32Frozen record contract version.
resolved_config_sha256: StringSHA-256 of the canonical resolved, secret-free configuration.
definitions: Vec<WorkspaceRepositoryDefinitionDigest>Strictly ordered declared-definition identifiers and digests.
sources: Vec<WorkspaceRepositorySourceDigest>Strictly ordered external source identifiers and digest references.
git: WorkspaceRepositoryGitProvenanceBounded Git provenance.
operation_uuid: UuidCaller-owned idempotency identity for the publishing operation.
actor_uuid: Option<Uuid>Optional caller-owned actor identity.
Implementations§
Source§impl WorkspaceRepositorySnapshot
impl WorkspaceRepositorySnapshot
Sourcepub fn to_canonical_json(&self) -> Result<Vec<u8>, GfError>
pub fn to_canonical_json(&self) -> Result<Vec<u8>, GfError>
Validate and return canonical JSON plus LF.
§Errors
Returns GF_PROJECT_CORRUPT for future, malformed, noncanonical, or
out-of-bounds snapshots.
Sourcepub fn from_canonical_json(bytes: &[u8]) -> Result<Self, GfError>
pub fn from_canonical_json(bytes: &[u8]) -> Result<Self, GfError>
Parse exact canonical JSON plus LF and enforce every contract bound.
§Errors
Returns GF_PROJECT_CORRUPT for future, malformed, noncanonical, or
out-of-bounds snapshots.
Sourcepub fn to_project_participant(&self) -> Result<ProjectParticipant, GfError>
pub fn to_project_participant(&self) -> Result<ProjectParticipant, GfError>
Encode this record as the registered workspace generation participant.
§Errors
Returns a structured error when the snapshot violates its contract.
Trait Implementations§
Source§impl Clone for WorkspaceRepositorySnapshot
impl Clone for WorkspaceRepositorySnapshot
Source§fn clone(&self) -> WorkspaceRepositorySnapshot
fn clone(&self) -> WorkspaceRepositorySnapshot
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for WorkspaceRepositorySnapshot
impl Debug for WorkspaceRepositorySnapshot
Source§impl<'de> Deserialize<'de> for WorkspaceRepositorySnapshot
impl<'de> Deserialize<'de> for WorkspaceRepositorySnapshot
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>,
impl Eq for WorkspaceRepositorySnapshot
impl StructuralPartialEq for WorkspaceRepositorySnapshot
Auto Trait Implementations§
impl Freeze for WorkspaceRepositorySnapshot
impl RefUnwindSafe for WorkspaceRepositorySnapshot
impl Send for WorkspaceRepositorySnapshot
impl Sync for WorkspaceRepositorySnapshot
impl Unpin for WorkspaceRepositorySnapshot
impl UnsafeUnpin for WorkspaceRepositorySnapshot
impl UnwindSafe for WorkspaceRepositorySnapshot
Blanket Implementations§
impl<T> Allocation for T
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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
key and return true if they are equal.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§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more