lightning-invoice: Add Description::as_inner

This commit is contained in:
Max Fang 2024-07-23 17:11:10 -07:00
parent 951174afe4
commit 2a8ab6fc28

View file

@ -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 {