nominal_api/conjure/objects/scout/datasource/connection/api/
connection_status.rs1#[derive(
2 Debug,
3 Clone,
4 conjure_object::serde::Serialize,
5 conjure_object::serde::Deserialize,
6 PartialEq,
7 Eq,
8 PartialOrd,
9 Ord,
10 Hash,
11 Copy
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 ConnectionStatus {
17 #[serde(rename = "isConnected")]
18 is_connected: bool,
19}
20impl ConnectionStatus {
21 #[inline]
23 pub fn new(is_connected: bool) -> Self {
24 Self::builder().is_connected(is_connected).build()
25 }
26 #[inline]
27 pub fn is_connected(&self) -> bool {
28 self.is_connected
29 }
30}