nominal-api 0.1239.0

API bindings for the Nominal platform
Documentation
/// A ping can be sent by both client and server to keep the connection open and check that it is still working.
/// The receiving end should send back a pong immediately.
/// We also include the times that pings and pongs are sent so that we can track latency and/or discover clock
/// drift between server and client.
#[derive(
    Debug,
    Clone,
    conjure_object::serde::Serialize,
    conjure_object::serde::Deserialize,
    PartialEq,
    Eq,
    PartialOrd,
    Ord,
    Hash,
    Copy
)]
#[serde(crate = "conjure_object::serde")]
#[conjure_object::private::staged_builder::staged_builder]
#[builder(crate = conjure_object::private::staged_builder, update, inline)]
pub struct Ping {
    #[serde(rename = "sentAt")]
    sent_at: conjure_object::DateTime<conjure_object::Utc>,
}
impl Ping {
    /// Constructs a new instance of the type.
    #[inline]
    pub fn new(sent_at: conjure_object::DateTime<conjure_object::Utc>) -> Self {
        Self::builder().sent_at(sent_at).build()
    }
    #[inline]
    pub fn sent_at(&self) -> conjure_object::DateTime<conjure_object::Utc> {
        self.sent_at
    }
}