Structures
The following structures are available globally.
-
The
See moreSubuser
struct represents a subuser on a parent account.Declaration
Swift
public struct Subuser : Codable
-
The
See moreBlock
struct represents a block event.Declaration
Swift
public struct Block : EmailEventRepresentable, Codable
-
The
See moreBounce
struct represents a bounce event.Declaration
Swift
public struct Bounce : EmailEventRepresentable, Codable
-
The
See moreGlobalUnsubscribe
struct represents an entry on theGlobal Unsubscribe
suppression list.Declaration
Swift
public struct GlobalUnsubscribe : EmailEventRepresentable, Codable
-
The
See moreInvalidEmail
struct represents an entry on theInvalid Email
suppression list.Declaration
Swift
public struct InvalidEmail : EmailEventRepresentable, Codable
-
The
See moreSpamReport
struct represents a spam report event.Declaration
Swift
public struct SpamReport : EmailEventRepresentable, Codable
-
The
See moreStatistic
struct 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 moreASM
class is used to specify an unsubscribe group to associate the email with.Declaration
Swift
public struct ASM : Encodable
-
The
See moreAddress
struct represents an email address and contains the email address along with an optional display name.Declaration
Swift
public struct Address : Encodable
-
The
See moreContent
class 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 moreBypassListManagement
class 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 moreFooter
mail 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 moreMailSetting
struct 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 moreSpamChecker
mail setting allows you to test the content of your email for spam.Declaration
Swift
public struct SpamChecker : Encodable
-
The
See moreClickTracking
class is used to adjust the click tracking setting.Declaration
Swift
public struct ClickTracking : Encodable
-
The
See moreGoogleAnalytics
class 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 moreOpenTracking
class is used to toggle the open tracking setting for an email.Declaration
Swift
public struct OpenTracking : Encodable
-
The
See moreSubscriptionTracking
class is used to modify the subscription tracking setting on an email.Declaration
Swift
public struct SubscriptionTracking : Encodable
-
The
See moreTrackingSettings
struct houses any tracking settings an email should be configured with.Declaration
Swift
public struct TrackingSettings : Encodable
-
The
See moreSuppressionListDeleterParameters
struct houses all the parameters that can be made for the suppression delete calls.Declaration
Swift
public struct SuppressionListDeleterParameters : Codable
-
The
See moreSuppressionListReaderParameters
serves as the parameters used by theget suppressions
API calls.Declaration
Swift
public struct SuppressionListReaderParameters : Codable
-
The
See moreException
struct contains all the errors that the SendGrid-Swift library can throw.Declaration
Swift
public struct Exception
-
The
See moreConstants
struct houses all the constant values used throughout the library.Declaration
Swift
public struct Constants
-
The
See moreContentType
struct 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 morelimit
andoffset
parameters found in various API calls.Declaration
Swift
public struct Page : Equatable