nominal_api/conjure/errors/persistent/compute/api/
job_invalid_state.rs1#[derive(
4 Debug,
5 Clone,
6 conjure_object::serde::Serialize,
7 conjure_object::serde::Deserialize,
8 PartialEq,
9 Eq,
10 PartialOrd,
11 Ord,
12 Hash,
13 Copy
14)]
15#[serde(crate = "conjure_object::serde")]
16#[conjure_object::private::staged_builder::staged_builder]
17#[builder(crate = conjure_object::private::staged_builder, update, inline)]
18pub struct JobInvalidState {}
19impl JobInvalidState {
20 #[inline]
22 pub fn new() -> Self {
23 Self::builder().build()
24 }
25}
26impl conjure_error::ErrorType for JobInvalidState {
27 #[inline]
28 fn code() -> conjure_error::ErrorCode {
29 conjure_error::ErrorCode::Internal
30 }
31 #[inline]
32 fn name() -> &'static str {
33 "PersistentCompute:JobInvalidState"
34 }
35 #[inline]
36 fn safe_args() -> &'static [&'static str] {
37 &[]
38 }
39}