nominal-api 0.1239.0

API bindings for the Nominal platform
Documentation
/// This will be sent if there is an error processing a `ClientMessage`. Note: This won't automatically close
/// the connection. The client can continue sending `ClientMessage`s after receiving this error.
#[derive(
    Debug,
    Clone,
    conjure_object::serde::Serialize,
    conjure_object::serde::Deserialize,
    PartialEq,
    Eq,
    PartialOrd,
    Ord,
    Hash
)]
#[serde(crate = "conjure_object::serde")]
#[conjure_object::private::staged_builder::staged_builder]
#[builder(crate = conjure_object::private::staged_builder, update, inline)]
pub struct ClientMessageError {
    #[builder(
        custom(
            type = super::super::super::super::api::SerializableError,
            convert = Box::new
        )
    )]
    #[serde(rename = "error")]
    error: Box<super::super::super::super::api::SerializableError>,
}
impl ClientMessageError {
    /// Constructs a new instance of the type.
    #[inline]
    pub fn new(error: super::super::super::super::api::SerializableError) -> Self {
        Self::builder().error(error).build()
    }
    #[inline]
    pub fn error(&self) -> &super::super::super::super::api::SerializableError {
        &*self.error
    }
}