Structures
The following structures are available globally.
-
The
See moreSubuserstruct represents a subuser on a parent account.Declaration
Swift
public struct Subuser : Codable
-
The
See moreBlockstruct represents a block event.Declaration
Swift
public struct Block : EmailEventRepresentable, Codable
-
The
See moreBouncestruct represents a bounce event.Declaration
Swift
public struct Bounce : EmailEventRepresentable, Codable
-
The
See moreGlobalUnsubscribestruct represents an entry on theGlobal Unsubscribe
suppression list.Declaration
Swift
public struct GlobalUnsubscribe : EmailEventRepresentable, Codable
-
The
See moreInvalidEmailstruct represents an entry on theInvalid Email
suppression list.Declaration
Swift
public struct InvalidEmail : EmailEventRepresentable, Codable
-
The
See moreSpamReportstruct represents a spam report event.Declaration
Swift
public struct SpamReport : EmailEventRepresentable, Codable
-
The
See moreStatisticstruct represents the enclosing structure of statistics returning from the various stat API calls. It contains the date of the aggregated time period, along with the raw stats.Declaration
Swift
public struct Statistic : Codable
-
The
See moreASMclass is used to specify an unsubscribe group to associate the email with.Declaration
Swift
public struct ASM : Encodable
-
The
See moreAddressstruct represents an email address and contains the email address along with an optional display name.Declaration
Swift
public struct Address : Encodable
-
The
See moreContentclass represents a MIME part of the email message (i.e. the plain text and HTML parts of an email).Declaration
Swift
public struct Content : Encodable
-
This allows you to have a blind carbon copy automatically sent to the specified email address for every email that is sent.
See moreDeclaration
Swift
public struct BCCSetting : Encodable
-
The
See moreBypassListManagementclass allows you to bypass all unsubscribe groups and suppressions to ensure that the email is attempted to be delivered to every single recipient. This should only be used in emergencies when it is absolutely necessary that every recipient receives your email. Ex: outage emails, or forgot password emails.Declaration
Swift
public struct BypassListManagement : Encodable
-
The
See moreFootermail setting allows you to specify a footer that will be appended to the bottom of every email.Declaration
Swift
public struct Footer : Encodable
-
The
See moreMailSettingstruct houses any mail settings an email should be configured with.Declaration
Swift
public struct MailSettings : Encodable
-
This allows you to send a test email to ensure that your request body is valid and formatted correctly. For more information, please see the SendGrid docs.
See moreDeclaration
Swift
public struct SandboxMode : Encodable
-
The
See moreSpamCheckermail setting allows you to test the content of your email for spam.Declaration
Swift
public struct SpamChecker : Encodable
-
The
See moreClickTrackingclass is used to adjust the click tracking setting.Declaration
Swift
public struct ClickTracking : Encodable
-
The
See moreGoogleAnalyticsclass is used to toggle the Google Analytics setting, which adds GA parameters to links in the email.Declaration
Swift
public struct GoogleAnalytics : Encodable
-
The
See moreOpenTrackingclass is used to toggle the open tracking setting for an email.Declaration
Swift
public struct OpenTracking : Encodable
-
The
See moreSubscriptionTrackingclass is used to modify the subscription tracking setting on an email.Declaration
Swift
public struct SubscriptionTracking : Encodable
-
The
See moreTrackingSettingsstruct houses any tracking settings an email should be configured with.Declaration
Swift
public struct TrackingSettings : Encodable
-
The
See moreSuppressionListDeleterParametersstruct houses all the parameters that can be made for the suppression delete calls.Declaration
Swift
public struct SuppressionListDeleterParameters : Codable
-
The
See moreSuppressionListReaderParametersserves as the parameters used by theget suppressions
API calls.Declaration
Swift
public struct SuppressionListReaderParameters : Codable
-
The
See moreExceptionstruct contains all the errors that the SendGrid-Swift library can throw.Declaration
Swift
public struct Exception
-
The
See moreConstantsstruct houses all the constant values used throughout the library.Declaration
Swift
public struct Constants
-
The
See moreContentTypestruct represents the common types of Content Types used when sending through the SendGrid API.Declaration
Swift
public struct ContentType : CustomStringConvertible, Equatable
-
This struct houses both the date and data decoding strategies for a response.
See moreDeclaration
Swift
public struct DecodingStrategy
-
This struct houses both the date and data encoding strategies for a request.
See moreDeclaration
Swift
public struct EncodingStrategy
-
This struct is used to represent a page via the
See morelimitandoffsetparameters found in various API calls.Declaration
Swift
public struct Page : Equatable
View on GitHub
Structures Reference