nominal-api 0.1239.0

API bindings for the Nominal platform
Documentation
/// Request to batch preregister users in the caller's organization.
/// Only creates new users for emails that don't already exist.
/// Newly created users are stored with an email claim matching their email address.
/// Maximum of 1000 emails per request.
#[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 BatchPreregisterUsersRequest {
    #[builder(default, list(item(type = String, into)))]
    #[serde(rename = "emails", skip_serializing_if = "Vec::is_empty", default)]
    emails: Vec<String>,
}
impl BatchPreregisterUsersRequest {
    /// Constructs a new instance of the type.
    #[inline]
    pub fn new() -> Self {
        Self::builder().build()
    }
    /// The list of email addresses to preregister. Maximum 1000 entries.
    #[inline]
    pub fn emails(&self) -> &[String] {
        &*self.emails
    }
}