nominal_api/conjure/objects/persistent/compute/api/
pong.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 Pong {
17 #[serde(rename = "pingOriginallySentAt")]
18 ping_originally_sent_at: conjure_object::DateTime<conjure_object::Utc>,
19 #[serde(rename = "sentAt")]
20 sent_at: conjure_object::DateTime<conjure_object::Utc>,
21}
22impl Pong {
23 #[inline]
25 pub fn new(
26 ping_originally_sent_at: conjure_object::DateTime<conjure_object::Utc>,
27 sent_at: conjure_object::DateTime<conjure_object::Utc>,
28 ) -> Self {
29 Self::builder()
30 .ping_originally_sent_at(ping_originally_sent_at)
31 .sent_at(sent_at)
32 .build()
33 }
34 #[inline]
35 pub fn ping_originally_sent_at(
36 &self,
37 ) -> conjure_object::DateTime<conjure_object::Utc> {
38 self.ping_originally_sent_at
39 }
40 #[inline]
41 pub fn sent_at(&self) -> conjure_object::DateTime<conjure_object::Utc> {
42 self.sent_at
43 }
44}