Update auto-generated bindings
[ldk-java] / src / main / java / org / ldk / structs / Option_TypeZ.java
index fffa4bb0bec7c81d94399c15e8634bf8d73fe486..e528bdcbdf35bf97b094eb1648ca2f64dd57abe9 100644 (file)
@@ -29,6 +29,9 @@ public class Option_TypeZ extends CommonBase {
                assert false; return null; // Unreachable without extending the (internal) bindings interface
        }
 
+       /**
+        * When we're in this state, this COption_TypeZ contains a crate::lightning::ln::wire::Type
+        */
        public final static class Some extends Option_TypeZ {
                public final Type some;
                private Some(long ptr, bindings.LDKCOption_TypeZ.Some obj) {
@@ -39,6 +42,9 @@ public class Option_TypeZ extends CommonBase {
                        this.some = ret_hu_conv;
                }
        }
+       /**
+        * When we're in this state, this COption_TypeZ contains nothing
+        */
        public final static class None extends Option_TypeZ {
                private None(long ptr, bindings.LDKCOption_TypeZ.None obj) {
                        super(null, ptr);
@@ -67,6 +73,11 @@ public class Option_TypeZ extends CommonBase {
                return ret_hu_conv;
        }
 
+       long clone_ptr() {
+               long ret = bindings.COption_TypeZ_clone_ptr(this.ptr);
+               return ret;
+       }
+
        /**
         * Creates a new COption_TypeZ which has the same data as `orig`
         * but with all dynamically-allocated buffers duplicated in new buffers.