nominal_api/conjure/objects/ingest/api/
channel_prefix.rs1#[derive(
3 Debug,
4 Clone,
5 conjure_object::serde::Deserialize,
6 conjure_object::serde::Serialize,
7 PartialEq,
8 Eq,
9 PartialOrd,
10 Ord,
11 Hash,
12 Default
13)]
14#[serde(crate = "conjure_object::serde", transparent)]
15pub struct ChannelPrefix(pub Option<String>);
16impl std::convert::From<Option<String>> for ChannelPrefix {
17 #[inline]
18 fn from(v: Option<String>) -> Self {
19 ChannelPrefix(std::convert::From::from(v))
20 }
21}
22impl std::ops::Deref for ChannelPrefix {
23 type Target = Option<String>;
24 #[inline]
25 fn deref(&self) -> &Option<String> {
26 &self.0
27 }
28}
29impl std::ops::DerefMut for ChannelPrefix {
30 #[inline]
31 fn deref_mut(&mut self) -> &mut Option<String> {
32 &mut self.0
33 }
34}
35impl std::convert::AsRef<Option<String>> for ChannelPrefix {
36 #[inline]
37 fn as_ref(&self) -> &Option<String> {
38 &self.0
39 }
40}