ctest 0.5.1

Automated testing of FFI bindings in Rust.
Documentation
use crate::{
    BoxStr,
    Field,
};

/// Represents a union defined in Rust.
#[derive(Debug, Clone)]
pub struct Union {
    pub(crate) public: bool,
    pub(crate) ident: BoxStr,
    pub(crate) fields: Vec<Field>,
}

impl Union {
    /// Return the identifier of the union as a string.
    pub fn ident(&self) -> &str {
        &self.ident
    }
}