pub struct SigningValidationReport {
pub mode: SigningMode,
pub signing_status: SigningStatus,
pub certificate: ValidationStatus,
pub provisioning: ValidationStatus,
pub team: ValidationStatus,
pub device: ValidationStatus,
pub entitlements: ValidationStatus,
pub errors: Vec<SigningValidationError>,
}Expand description
Detailed validation state and typed failures for one signing operation.
Fields§
§mode: SigningModeSigning mode whose evidence this report validates.
signing_status: SigningStatusOverall signing lifecycle stage.
certificate: ValidationStatusCertificate validation state.
provisioning: ValidationStatusProvisioning validation state.
team: ValidationStatusTeam validation state.
device: ValidationStatusDevice validation state.
entitlements: ValidationStatusEntitlement validation state.
errors: Vec<SigningValidationError>Typed secret-free failures.
Implementations§
Source§impl SigningValidationReport
impl SigningValidationReport
Sourcepub fn new(mode: SigningMode) -> Self
pub fn new(mode: SigningMode) -> Self
Create an empty report with mode-appropriate component states.
Sourcepub fn mark_validated(&mut self, component: ValidationComponent)
pub fn mark_validated(&mut self, component: ValidationComponent)
Mark one component validated.
Sourcepub fn record_error(
&mut self,
component: ValidationComponent,
error: SigningValidationError,
)
pub fn record_error( &mut self, component: ValidationComponent, error: SigningValidationError, )
Record a typed failure and invalidate the overall signing status.
Sourcepub fn advance(
&mut self,
next: SigningStatus,
) -> Result<(), SigningValidationError>
pub fn advance( &mut self, next: SigningStatus, ) -> Result<(), SigningValidationError>
Advance the overall lifecycle by one stage.
§Errors
Returns a typed transition error when a stage is skipped.
Sourcepub fn artifact_is_validated(&self) -> bool
pub fn artifact_is_validated(&self) -> bool
Return whether the report proves an independently validated artifact.
Trait Implementations§
Source§impl Clone for SigningValidationReport
impl Clone for SigningValidationReport
Source§impl Debug for SigningValidationReport
impl Debug for SigningValidationReport
Source§impl<'de> Deserialize<'de> for SigningValidationReport
impl<'de> Deserialize<'de> for SigningValidationReport
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 SigningValidationReport
Source§impl JsonSchema for SigningValidationReport
impl JsonSchema for SigningValidationReport
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 SigningValidationReport
impl PartialEq for SigningValidationReport
Source§impl Serialize for SigningValidationReport
impl Serialize for SigningValidationReport
impl StructuralPartialEq for SigningValidationReport
Auto Trait Implementations§
impl Freeze for SigningValidationReport
impl RefUnwindSafe for SigningValidationReport
impl Send for SigningValidationReport
impl Sync for SigningValidationReport
impl Unpin for SigningValidationReport
impl UnsafeUnpin for SigningValidationReport
impl UnwindSafe for SigningValidationReport
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.