Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions bindings/go/iota_sdk_ffi/iota_sdk_ffi.go
Original file line number Diff line number Diff line change
Expand Up @@ -20720,6 +20720,19 @@ func (_self *TypeTag) IsVector() bool {
_pointer,_uniffiStatus)
}))
}

func (_self *TypeTag) String() string {
_pointer := _self.ffiObject.incrementPointer("*TypeTag")
defer _self.ffiObject.decrementPointer()
return FfiConverterStringINSTANCE.Lift(rustCall(func(_uniffiStatus *C.RustCallStatus) RustBufferI {
return GoRustBuffer {
inner: C.uniffi_iota_sdk_ffi_fn_method_typetag_uniffi_trait_display(
_pointer,_uniffiStatus),
}
}))
}


func (object *TypeTag) Destroy() {
runtime.SetFinalizer(object, nil)
object.ffiObject.destroy()
Expand Down
5 changes: 5 additions & 0 deletions bindings/go/iota_sdk_ffi/iota_sdk_ffi.h
Original file line number Diff line number Diff line change
Expand Up @@ -3981,6 +3981,11 @@ int8_t uniffi_iota_sdk_ffi_fn_method_typetag_is_u8(void* ptr, RustCallStatus *ou
int8_t uniffi_iota_sdk_ffi_fn_method_typetag_is_vector(void* ptr, RustCallStatus *out_status
);
#endif
#ifndef UNIFFI_FFIDEF_UNIFFI_IOTA_SDK_FFI_FN_METHOD_TYPETAG_UNIFFI_TRAIT_DISPLAY
#define UNIFFI_FFIDEF_UNIFFI_IOTA_SDK_FFI_FN_METHOD_TYPETAG_UNIFFI_TRAIT_DISPLAY
RustBuffer uniffi_iota_sdk_ffi_fn_method_typetag_uniffi_trait_display(void* ptr, RustCallStatus *out_status
);
#endif
#ifndef UNIFFI_FFIDEF_UNIFFI_IOTA_SDK_FFI_FN_CLONE_UNRESOLVEDINPUT
#define UNIFFI_FFIDEF_UNIFFI_IOTA_SDK_FFI_FN_CLONE_UNRESOLVEDINPUT
void* uniffi_iota_sdk_ffi_fn_clone_unresolvedinput(void* ptr, RustCallStatus *out_status
Expand Down
14 changes: 14 additions & 0 deletions bindings/kotlin/lib/iota_sdk/iota_sdk_ffi.kt
Original file line number Diff line number Diff line change
Expand Up @@ -2189,6 +2189,7 @@ internal interface UniffiForeignFutureCompleteVoid : com.sun.jna.Callback {






// For large crates we prevent `MethodTooLargeException` (see #2340)
Expand Down Expand Up @@ -4945,6 +4946,8 @@ fun uniffi_iota_sdk_ffi_fn_method_typetag_is_u8(`ptr`: Pointer,uniffi_out_err: U
): Byte
fun uniffi_iota_sdk_ffi_fn_method_typetag_is_vector(`ptr`: Pointer,uniffi_out_err: UniffiRustCallStatus,
): Byte
fun uniffi_iota_sdk_ffi_fn_method_typetag_uniffi_trait_display(`ptr`: Pointer,uniffi_out_err: UniffiRustCallStatus,
): RustBuffer.ByValue
fun uniffi_iota_sdk_ffi_fn_clone_unresolvedinput(`ptr`: Pointer,uniffi_out_err: UniffiRustCallStatus,
): Pointer
fun uniffi_iota_sdk_ffi_fn_free_unresolvedinput(`ptr`: Pointer,uniffi_out_err: UniffiRustCallStatus,
Expand Down Expand Up @@ -37420,6 +37423,17 @@ open class TypeTag: Disposable, AutoCloseable, TypeTagInterface



override fun toString(): String {
return FfiConverterString.lift(
callWithPointer {
uniffiRustCall() { _status ->
UniffiLib.INSTANCE.uniffi_iota_sdk_ffi_fn_method_typetag_uniffi_trait_display(
it, _status)
}
}
)
}



companion object {
Expand Down
14 changes: 14 additions & 0 deletions bindings/python/lib/iota_sdk_ffi.py
Original file line number Diff line number Diff line change
Expand Up @@ -5534,6 +5534,11 @@ class _UniffiForeignFutureStructVoid(ctypes.Structure):
ctypes.POINTER(_UniffiRustCallStatus),
)
_UniffiLib.uniffi_iota_sdk_ffi_fn_method_typetag_is_vector.restype = ctypes.c_int8
_UniffiLib.uniffi_iota_sdk_ffi_fn_method_typetag_uniffi_trait_display.argtypes = (
ctypes.c_void_p,
ctypes.POINTER(_UniffiRustCallStatus),
)
_UniffiLib.uniffi_iota_sdk_ffi_fn_method_typetag_uniffi_trait_display.restype = _UniffiRustBuffer
_UniffiLib.uniffi_iota_sdk_ffi_fn_clone_unresolvedinput.argtypes = (
ctypes.c_void_p,
ctypes.POINTER(_UniffiRustCallStatus),
Expand Down Expand Up @@ -35798,6 +35803,15 @@ def is_vector(self, ) -> "bool":



def __str__(self, ) -> "str":
return _UniffiConverterString.lift(
_uniffi_rust_call(_UniffiLib.uniffi_iota_sdk_ffi_fn_method_typetag_uniffi_trait_display,self._uniffi_clone_pointer(),)
)






class _UniffiConverterTypeTypeTag:

Expand Down
3 changes: 2 additions & 1 deletion crates/iota-sdk-ffi/src/types/type_tag.rs
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,8 @@ use crate::types::struct_tag::StructTag;
/// type-tag-vector = %x06 type-tag
/// type-tag-struct = %x07 struct-tag
/// ```
#[derive(derive_more::From, uniffi::Object)]
#[derive(derive_more::Display, derive_more::From, uniffi::Object)]
#[uniffi::export(Display)]
pub struct TypeTag(pub iota_types::TypeTag);

#[uniffi::export]
Expand Down