mirror of
https://github.com/lightningdevkit/rust-lightning.git
synced 2025-02-24 06:57:53 +01:00
lightning-invoice: Add Description::as_inner
This commit is contained in:
parent
951174afe4
commit
2a8ab6fc28
1 changed files with 5 additions and 0 deletions
|
@ -1526,6 +1526,11 @@ impl Description {
|
|||
pub fn into_inner(self) -> UntrustedString {
|
||||
self.0
|
||||
}
|
||||
|
||||
/// Get a reference to the underlying description [`UntrustedString`]
|
||||
pub fn as_inner(&self) -> &UntrustedString {
|
||||
&self.0
|
||||
}
|
||||
}
|
||||
|
||||
impl Display for Description {
|
||||
|
|
Loading…
Add table
Reference in a new issue