nominal_api/conjure/errors/scout/compute/api/
cannot_compile_regexp.rs1#[derive(
3 Debug,
4 Clone,
5 conjure_object::serde::Serialize,
6 conjure_object::serde::Deserialize,
7 PartialEq,
8 Eq,
9 PartialOrd,
10 Ord,
11 Hash,
12 Copy
13)]
14#[serde(crate = "conjure_object::serde")]
15#[conjure_object::private::staged_builder::staged_builder]
16#[builder(crate = conjure_object::private::staged_builder, update, inline)]
17pub struct CannotCompileRegexp {
18 #[builder(default, into)]
19 #[serde(rename = "queryId", skip_serializing_if = "Option::is_none", default)]
20 query_id: Option<conjure_object::Uuid>,
21}
22impl CannotCompileRegexp {
23 #[inline]
25 pub fn new() -> Self {
26 Self::builder().build()
27 }
28 #[inline]
29 pub fn query_id(&self) -> Option<conjure_object::Uuid> {
30 self.query_id.as_ref().map(|o| *o)
31 }
32}
33impl conjure_error::ErrorType for CannotCompileRegexp {
34 #[inline]
35 fn code() -> conjure_error::ErrorCode {
36 conjure_error::ErrorCode::InvalidArgument
37 }
38 #[inline]
39 fn name() -> &'static str {
40 "Compute:CannotCompileRegexp"
41 }
42 #[inline]
43 fn safe_args() -> &'static [&'static str] {
44 &["queryId"]
45 }
46}