+
+ /**
+ * Creates a new CResult_NoneAPIErrorZ in the success state.
+ */
+ public static Result_NoneAPIErrorZ constructor_ok() {
+ long ret = bindings.CResult_NoneAPIErrorZ_ok();
+ Result_NoneAPIErrorZ ret_hu_conv = Result_NoneAPIErrorZ.constr_from_ptr(ret);
+ return ret_hu_conv;
+ }
+
+ /**
+ * Creates a new CResult_NoneAPIErrorZ in the error state.
+ */
+ public static Result_NoneAPIErrorZ constructor_err(APIError e) {
+ long ret = bindings.CResult_NoneAPIErrorZ_err(e.ptr);
+ Result_NoneAPIErrorZ ret_hu_conv = Result_NoneAPIErrorZ.constr_from_ptr(ret);
+ return ret_hu_conv;
+ }
+
+ /**
+ * Creates a new CResult_NoneAPIErrorZ which has the same data as `orig`
+ * but with all dynamically-allocated buffers duplicated in new buffers.
+ */
+ public Result_NoneAPIErrorZ clone() {
+ long ret = bindings.CResult_NoneAPIErrorZ_clone(this.ptr);
+ Result_NoneAPIErrorZ ret_hu_conv = Result_NoneAPIErrorZ.constr_from_ptr(ret);
+ return ret_hu_conv;
+ }
+