OZStoredCredentialUpdate
public struct OZStoredCredentialUpdate : Sendable, Equatable, Hashable
Partial updates for a stored credential.
Only non-nil fields are applied during an update operation. A nil value means
“no change” — it does not clear the field to nil. This is a deliberate design
choice: there is no way to set a previously non-nil field back to nil via
OZStorageAdapter.update. To reset a field, call OZStorageAdapter.save with a full
OZStoredCredential replacement.
Example:
let update = OZStoredCredentialUpdate(
deploymentStatus: .failed,
deploymentError: "Transaction failed: insufficient balance"
)
try await storage.update(credentialId: "abc123", updates: update)
-
Undocumented
Declaration
Swift
public let deploymentStatus: OZCredentialDeploymentStatus? -
Undocumented
Declaration
Swift
public let deploymentError: String? -
Undocumented
Declaration
Swift
public let contractId: String? -
Undocumented
Declaration
Swift
public let lastUsedAt: Int64? -
Undocumented
Declaration
Swift
public let nickname: String? -
Undocumented
Declaration
Swift
public let isPrimary: Bool? -
Undocumented
Declaration
Swift
public let transports: [String]? -
Undocumented
Declaration
Swift
public let deviceType: String? -
Undocumented
Declaration
Swift
public let backedUp: Bool? -
init(deploymentStatus:deploymentError: contractId: lastUsedAt: nickname: isPrimary: transports: deviceType: backedUp: ) Undocumented
Declaration
Swift
public init( deploymentStatus: OZCredentialDeploymentStatus? = nil, deploymentError: String? = nil, contractId: String? = nil, lastUsedAt: Int64? = nil, nickname: String? = nil, isPrimary: Bool? = nil, transports: [String]? = nil, deviceType: String? = nil, backedUp: Bool? = nil )
View on GitHub
Install in Dash