Skip to content

StructTag

MarcoDotIO edited this page Apr 25, 2023 · 1 revision

StructTag

Struct Type Tag

public struct StructTag: TypeProtcol, Equatable 

Inheritance

Equatable, TypeProtcol

Methods

fromStr(_:)

Deserialize a StructTag instance from a string representation.

public static func fromStr(_ typeTag: String) throws -> StructTag 

This function deserializes the given string representation of a StructTag instance to a StructTag object.

Parameters

  • typeTag: A string representation of the StructTag instance to be deserialized.

Throws

An AptosError indicating that the given string representation is invalid and cannot be deserialized to a StructTag instance.

Returns

A StructTag instance that has been deserialized from the given string representation.

variant()

public func variant() -> Int 

deserialize(from:)

public static func deserialize(from deserializer: Deserializer) throws -> StructTag 

serialize(_:)

public func serialize(_ serializer: Serializer) throws 

Operators

==

public static func ==(lhs: StructTag, rhs: StructTag) -> Bool 
Types
Protocols
Global Variables
Global Functions
Extensions
Clone this wiki locally