nominal_api/conjure/errors/ingest/api/
streaming_session_not_found.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)]
13#[serde(crate = "conjure_object::serde")]
14#[conjure_object::private::staged_builder::staged_builder]
15#[builder(crate = conjure_object::private::staged_builder, update, inline)]
16pub struct StreamingSessionNotFound {
17 #[serde(rename = "sessionRid")]
18 session_rid: conjure_object::ResourceIdentifier,
19}
20impl StreamingSessionNotFound {
21 #[inline]
23 pub fn new(session_rid: conjure_object::ResourceIdentifier) -> Self {
24 Self::builder().session_rid(session_rid).build()
25 }
26 #[inline]
27 pub fn session_rid(&self) -> &conjure_object::ResourceIdentifier {
28 &self.session_rid
29 }
30}
31impl conjure_error::ErrorType for StreamingSessionNotFound {
32 #[inline]
33 fn code() -> conjure_error::ErrorCode {
34 conjure_error::ErrorCode::NotFound
35 }
36 #[inline]
37 fn name() -> &'static str {
38 "IngestService:StreamingSessionNotFound"
39 }
40 #[inline]
41 fn safe_args() -> &'static [&'static str] {
42 &["sessionRid"]
43 }
44}