Structures

The following structures are available globally.

  • Represents a Salesforce Connected App.

    Reference

    Connected Apps in Salesforce help

    See more

    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

    OAuth 2.0 User-Agent Flow

    See more

    Declaration

    Swift

    public struct Credential : Codable, Equatable
  • Undocumented

    Declaration

    Swift

    public struct HTTP
  • Address data for a standard Salesforce object.

    Reference

    Address Compound Fields

    See more

    Declaration

    Swift

    public struct Address : Decodable
  • Salesforce field metadata. See SObject Describe.

    See more

    Declaration

    Swift

    public struct FieldDescription
    extension FieldDescription: Decodable
  • Undocumented

    See more

    Declaration

    Swift

    @propertyWrapper
    public struct DefaultValueEncoded : Decodable
  • Undocumented

    See more

    Declaration

    Swift

    public struct Identity : Codable
  • Represents a limited Salesforce resource. See: Limits.

    See more

    Declaration

    Swift

    public struct Limit
    extension Limit: Codable
  • Salesforce object metadata. See SObject Describe.

    See more

    Declaration

    Swift

    public struct ObjectDescription : Decodable
  • Represents an option in a Salesforce Picklist-type field (i.e. drop-down list); used with ObjectDescription

    See more

    Declaration

    Swift

    public struct PicklistItem : Decodable
  • Holds the result of a SOQL query. See Execute a SOQL Query.

    See more

    Declaration

    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

     var record: SalesforceRecord
     //...
     let acctName: String? = record.string(forField: "Name")
     let alsoAcctName: String? = record["Name"]
    
    See more

    Declaration

    Swift

    public struct Record : Decodable
  • Undocumented

    See more

    Declaration

    Swift

    public struct SalesforceError : Error, Decodable, Equatable
    extension SalesforceError: LocalizedError
  • Undocumented

    See more

    Declaration

    Swift

    public struct ApexService : Service
  • Undocumented

    See more

    Declaration

    Swift

    public struct IdentityService : Service
  • Undocumented

    See more

    Declaration

    Swift

    public struct LimitsService : Service
  • Undocumented

    See more

    Declaration

    Swift

    public struct QueryService : Service
  • Undocumented

    See more

    Declaration

    Swift

    public struct SObjectsService : Service
  • Undocumented

    See more

    Declaration

    Swift

    public struct Validator
  • Represents the version of the Salesforce API used by Swiftly Salesforce

    See more

    Declaration

    Swift

    public struct Version
    extension Version: CustomStringConvertible