Structures
The following structures are available globally.
-
Declaration
Swift
public struct ConnectedApp
-
Holds the result of a successful OAuth2 authentication, including the Salesforce access token and the refresh token, if available.
Reference
See moreDeclaration
Swift
public struct Credential : Codable, Equatable
-
Undocumented
Declaration
Swift
public struct HTTP
-
Declaration
Swift
public struct Address : Decodable
-
Salesforce field metadata. See SObject Describe.
See moreDeclaration
Swift
public struct FieldDescription
extension FieldDescription: Decodable
-
Undocumented
See moreDeclaration
Swift
@propertyWrapper public struct DefaultValueEncoded : Decodable
-
Undocumented
See moreDeclaration
Swift
public struct Identity : Codable
-
Salesforce object metadata. See SObject Describe.
See moreDeclaration
Swift
public struct ObjectDescription : Decodable
-
Represents an option in a Salesforce Picklist-type field (i.e. drop-down list); used with ObjectDescription
See moreDeclaration
Swift
public struct PicklistItem : Decodable
-
Holds the result of a SOQL query. See Execute a SOQL Query.
See moreDeclaration
Swift
public struct QueryResult<T> : Decodable where T : Decodable
-
Represents a Salesforce record.
Field values can be accessed via a number of getter methods, depending on the return type, or via a subscript using the field name as a key.
Example
See morevar record: SalesforceRecord //... let acctName: String? = record.string(forField: "Name") let alsoAcctName: String? = record["Name"]
Declaration
Swift
public struct Record : Decodable
-
Undocumented
See moreDeclaration
Swift
public struct SalesforceError : Error, Decodable, Equatable
extension SalesforceError: LocalizedError
-
Undocumented
See moreDeclaration
Swift
public struct Validator
-
Represents the version of the Salesforce API used by Swiftly Salesforce
See moreDeclaration
Swift
public struct Version
extension Version: CustomStringConvertible