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
wrappedValueWrapped property.
-
Init of NftProperty
Declaration
Swift
public init(wrappedValue: T, unique: Bool)Parameters
wrappedValueWrapped property.
uniqueIs this property of NFT unique per token.
-
Init of NftProperty
Declaration
Swift
public init(wrappedValue: T, modifiableBy: NftDataType.ModifiableBy)Parameters
wrappedValueWrapped property.
modifiableByWho can modify this property of NFT.
-
Full init of NftProperty
Declaration
Swift
public init(wrappedValue: T, unique: Bool, modifiableBy: NftDataType.ModifiableBy)Parameters
wrappedValueWrapped property.
uniqueIs this property of NFT unique per token.
modifiableByWho can modify this property of NFT.
-
Declaration
Swift
public init(from decoder: Decoder) throws -
Declaration
Swift
public func encode(to encoder: Encoder) throws
View on GitHub
Install in Dash
NftProperty Structure Reference