Skip to main content

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

1/// The number of points returned is greater than the max allowed. Try again with a smaller time
2/// range, or a larger resolution.
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 TooManyPoints {}
19impl TooManyPoints {
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 TooManyPoints {
27    #[inline]
28    fn code() -> conjure_error::ErrorCode {
29        conjure_error::ErrorCode::InvalidArgument
30    }
31    #[inline]
32    fn name() -> &'static str {
33        "Compute:TooManyPoints"
34    }
35    #[inline]
36    fn safe_args() -> &'static [&'static str] {
37        &[]
38    }
39}