NftProperty
@propertyWrapper
public struct NftProperty<T> : Codable where T : Decodable, T : Encodable
Property wrapper for properties of structs conforming to NftModel protocol Used to generate NftDataType from marked properties (is property of a NFT modifiable and unique)
-
Undocumented
Declaration
Swift
public var wrappedValue: T
-
Init of NftProperty
Declaration
Swift
public init(wrappedValue: T)
Parameters
wrappedValue
Wrapped property.
-
Init of NftProperty
Declaration
Swift
public init(wrappedValue: T, unique: Bool)
Parameters
wrappedValue
Wrapped property.
unique
Is this property of NFT unique per token.
-
Init of NftProperty
Declaration
Swift
public init(wrappedValue: T, modifiableBy: NftDataType.ModifiableBy)
Parameters
wrappedValue
Wrapped property.
modifiableBy
Who can modify this property of NFT.
-
Full init of NftProperty
Declaration
Swift
public init(wrappedValue: T, unique: Bool, modifiableBy: NftDataType.ModifiableBy)
Parameters
wrappedValue
Wrapped property.
unique
Is this property of NFT unique per token.
modifiableBy
Who can modify this property of NFT.
-
Declaration
Swift
public init(from decoder: Decoder) throws
-
Declaration
Swift
public func encode(to encoder: Encoder) throws