Skip to main content

nominal_api/conjure/errors/scout/compute/api/
invalid_value_map.rs

1/// Range end must be greater than range start. Range start may only be undefined if in the first range, or the prior end is defined and less.
2/// Range end may only be undefined if in the last range, or the next start is defined and greater. Ranges must be in increasing order.
3#[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 InvalidValueMap {}
19impl InvalidValueMap {
20    /// Constructs a new instance of the type.
21    #[inline]
22    pub fn new() -> Self {
23        Self::builder().build()
24    }
25}
26impl conjure_error::ErrorType for InvalidValueMap {
27    #[inline]
28    fn code() -> conjure_error::ErrorCode {
29        conjure_error::ErrorCode::InvalidArgument
30    }
31    #[inline]
32    fn name() -> &'static str {
33        "Compute:InvalidValueMap"
34    }
35    #[inline]
36    fn safe_args() -> &'static [&'static str] {
37        &[]
38    }
39}