pub struct GraduationState {
pub schema_version: u32,
pub source: PathBuf,
pub source_sha256: String,
pub catalog_sha256: String,
pub catalog: ProviderCatalog,
pub candidate: Option<GraduationArtifact>,
pub active: Option<GraduationArtifact>,
pub previous: Option<GraduationArtifact>,
pub python_backup: Option<PathBuf>,
pub attestation: Option<ConformanceAttestation>,
}Expand description
Durable state for one graduation workspace.
Fields§
§schema_version: u32Version of this persisted state schema.
source: PathBufCanonical path of the original Python provider.
source_sha256: StringDigest of the Python source at scaffold time.
catalog_sha256: StringCanonical digest of tools, schemas, annotations, and capabilities.
catalog: ProviderCatalogCaptured provider catalog used to preserve the public contract.
candidate: Option<GraduationArtifact>Built and verified component awaiting conformance and activation.
active: Option<GraduationArtifact>Component currently published in the live provider directory.
previous: Option<GraduationArtifact>Previously active component retained for rollback.
python_backup: Option<PathBuf>Backup path holding the original Python provider while Wasm is active.
attestation: Option<ConformanceAttestation>Digest-bound proof that the candidate matches the fixture corpus.
Trait Implementations§
Source§impl Clone for GraduationState
impl Clone for GraduationState
Source§fn clone(&self) -> GraduationState
fn clone(&self) -> GraduationState
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for GraduationState
impl Debug for GraduationState
Source§impl<'de> Deserialize<'de> for GraduationState
impl<'de> Deserialize<'de> for GraduationState
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
Auto Trait Implementations§
impl Freeze for GraduationState
impl RefUnwindSafe for GraduationState
impl Send for GraduationState
impl Sync for GraduationState
impl Unpin for GraduationState
impl UnsafeUnpin for GraduationState
impl UnwindSafe for GraduationState
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> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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>
Converts
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>
Converts
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