pub struct SnapshotSessionError {
pub schema_version: u32,
pub protocol_version: ProtocolVersion,
pub operation_id: Option<String>,
pub job_id: Option<String>,
pub code: String,
pub message: String,
pub retryable: bool,
pub cleanup: Option<CleanupConfirmation>,
}Expand description
Stable, secret-free terminal or pre-job session failure.
Fields§
§schema_version: u32Snapshot-session message schema.
protocol_version: ProtocolVersionFerry Remote Build Protocol version understood by the sender.
operation_id: Option<String>Operation identifier when a build start was decoded.
job_id: Option<String>Provider job identifier when one was allocated.
code: StringStable namespaced error code.
message: StringBounded public summary, never raw subprocess or parser text.
retryable: boolWhether retrying unchanged inputs may succeed.
cleanup: Option<CleanupConfirmation>Cleanup proof when cleanup completed after the failure.
Implementations§
Source§impl SnapshotSessionError
impl SnapshotSessionError
Sourcepub fn new(
operation_id: Option<String>,
job_id: Option<String>,
code: impl Into<String>,
message: impl Into<String>,
retryable: bool,
cleanup: Option<CleanupConfirmation>,
) -> RemoteBuildResult<Self>
pub fn new( operation_id: Option<String>, job_id: Option<String>, code: impl Into<String>, message: impl Into<String>, retryable: bool, cleanup: Option<CleanupConfirmation>, ) -> RemoteBuildResult<Self>
Construct one bounded, public session failure.
§Errors
Rejects unsafe identifiers, control text, oversized text, or mismatched cleanup proof.
Sourcepub fn validate(&self) -> RemoteBuildResult<()>
pub fn validate(&self) -> RemoteBuildResult<()>
Validate bounded public failure fields and optional cleanup identity.
§Errors
Rejects unsupported versions, unsafe identifiers/text, or mismatched cleanup proof.
Trait Implementations§
Source§impl Clone for SnapshotSessionError
impl Clone for SnapshotSessionError
Source§impl Debug for SnapshotSessionError
impl Debug for SnapshotSessionError
Source§impl<'de> Deserialize<'de> for SnapshotSessionError
impl<'de> Deserialize<'de> for SnapshotSessionError
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 SnapshotSessionError
Source§impl JsonSchema for SnapshotSessionError
impl JsonSchema for SnapshotSessionError
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 SnapshotSessionError
impl PartialEq for SnapshotSessionError
Source§impl Serialize for SnapshotSessionError
impl Serialize for SnapshotSessionError
impl StructuralPartialEq for SnapshotSessionError
Auto Trait Implementations§
impl Freeze for SnapshotSessionError
impl RefUnwindSafe for SnapshotSessionError
impl Send for SnapshotSessionError
impl Sync for SnapshotSessionError
impl Unpin for SnapshotSessionError
impl UnsafeUnpin for SnapshotSessionError
impl UnwindSafe for SnapshotSessionError
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.