nominal-api 0.1239.0

API bindings for the Nominal platform
Documentation
#[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 CreateBranchRequest {
    #[serde(rename = "existingCommit")]
    existing_commit: super::CommitId,
    #[serde(rename = "branchName")]
    branch_name: super::BranchName,
}
impl CreateBranchRequest {
    /// Constructs a new instance of the type.
    #[inline]
    pub fn new(
        existing_commit: super::CommitId,
        branch_name: super::BranchName,
    ) -> Self {
        Self::builder().existing_commit(existing_commit).branch_name(branch_name).build()
    }
    #[inline]
    pub fn existing_commit(&self) -> &super::CommitId {
        &self.existing_commit
    }
    #[inline]
    pub fn branch_name(&self) -> &super::BranchName {
        &self.branch_name
    }
}