ret
}
+#[no_mangle]
+/// Get the string representation of a Hostname object
+pub extern "C" fn Hostname_to_str(o: &crate::lightning::util::ser::Hostname) -> Str {
+ alloc::format!("{}", o.get_native_ref()).into()
+}
#[no_mangle]
/// Serialize the Hostname object into a byte array which can be read by Hostname_read
pub extern "C" fn Hostname_write(obj: &crate::lightning::util::ser::Hostname) -> crate::c_types::derived::CVec_u8Z {
crate::c_types::Transaction::from_bitcoin(&ret)
}
+/// Returns a reference to the contained `Transaction`
+#[must_use]
+#[no_mangle]
+pub extern "C" fn TransactionU16LenLimited_as_transaction(this_arg: &crate::lightning::util::ser::TransactionU16LenLimited) -> crate::c_types::Transaction {
+ let mut ret = unsafe { &*ObjOps::untweak_ptr(this_arg.inner) }.as_transaction();
+ crate::c_types::Transaction::from_bitcoin(ret)
+}
+
#[no_mangle]
/// Serialize the TransactionU16LenLimited object into a byte array which can be read by TransactionU16LenLimited_read
pub extern "C" fn TransactionU16LenLimited_write(obj: &crate::lightning::util::ser::TransactionU16LenLimited) -> crate::c_types::derived::CVec_u8Z {