pub struct SnapshotBuildComplete {
pub schema_version: u32,
pub protocol_version: ProtocolVersion,
pub operation_id: String,
pub job_id: String,
pub cleanup: CleanupConfirmation,
}Expand description
Successful terminal message emitted only after verified client receipt and cleanup.
Fields§
§schema_version: u32Snapshot-session message schema.
protocol_version: ProtocolVersionNegotiated Ferry Remote Build Protocol version.
operation_id: StringOperation identifier from the submitted request.
job_id: StringProvider-owned job identifier.
cleanup: CleanupConfirmationExact remote cleanup proof.
Implementations§
Source§impl SnapshotBuildComplete
impl SnapshotBuildComplete
Sourcepub fn new(
operation_id: impl Into<String>,
cleanup: CleanupConfirmation,
) -> RemoteBuildResult<Self>
pub fn new( operation_id: impl Into<String>, cleanup: CleanupConfirmation, ) -> RemoteBuildResult<Self>
Construct one successful terminal message.
§Errors
Rejects incomplete cleanup or unsafe identifiers.
Sourcepub fn validate(&self) -> RemoteBuildResult<()>
pub fn validate(&self) -> RemoteBuildResult<()>
Validate that terminal success includes complete non-retaining cleanup.
§Errors
Rejects mismatched identity or incomplete cleanup evidence.
Trait Implementations§
Source§impl Clone for SnapshotBuildComplete
impl Clone for SnapshotBuildComplete
Source§impl Debug for SnapshotBuildComplete
impl Debug for SnapshotBuildComplete
Source§impl<'de> Deserialize<'de> for SnapshotBuildComplete
impl<'de> Deserialize<'de> for SnapshotBuildComplete
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 SnapshotBuildComplete
Source§impl JsonSchema for SnapshotBuildComplete
impl JsonSchema for SnapshotBuildComplete
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 SnapshotBuildComplete
impl PartialEq for SnapshotBuildComplete
Source§impl Serialize for SnapshotBuildComplete
impl Serialize for SnapshotBuildComplete
impl StructuralPartialEq for SnapshotBuildComplete
Auto Trait Implementations§
impl Freeze for SnapshotBuildComplete
impl RefUnwindSafe for SnapshotBuildComplete
impl Send for SnapshotBuildComplete
impl Sync for SnapshotBuildComplete
impl Unpin for SnapshotBuildComplete
impl UnsafeUnpin for SnapshotBuildComplete
impl UnwindSafe for SnapshotBuildComplete
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.