Add a method to return the inner value (IssueBundle) of IssueData wrapper

This commit is contained in:
Dmitry Demin 2024-11-11 21:59:31 +01:00
parent c6a3dd48d2
commit c3a8583903
1 changed files with 7 additions and 0 deletions

View File

@ -27,6 +27,13 @@ use super::burn::ASSET_BASE_SIZE;
#[derive(Clone, Debug, PartialEq, Eq)]
pub struct IssueData(IssueBundle<Signed>);
impl IssueData {
/// Returns a reference to the inner `IssueBundle<Signed>`.
pub fn inner(&self) -> &IssueBundle<Signed> {
&self.0
}
}
impl From<IssueBundle<Signed>> for IssueData {
fn from(inner: IssueBundle<Signed>) -> Self {
Self(inner)