Structures

The following structures are available globally.

  • A struct that represents a custom HTTP cookie.

    See more

    Declaration

    Swift

    public struct CustomHTTPCookie : Codable, Sendable
  • Represents an EmptyNode node in the workflow.

    See more

    Declaration

    Swift

    public struct EmptyNode : Node
  • Represents an Failure node in the workflow.

    • property cause: The cause of the error.
    See more

    Declaration

    Swift

    public struct FailureNode : Node
  • Represents a ErrorNode node in the workflow.

    • property status: The status of the error.
    • property input: The input for the error.
    • property message: The message for the error.
    See more

    Declaration

    Swift

    public struct ErrorNode : Node
  • Represents a success node in the workflow.

    • property input: The input for the success.
    • property session: The session for the success.
    See more

    Declaration

    Swift

    public struct SuccessNode : Node
  • Singleton for an EmptySession. An EmptySession represents a session with no value.

    See more

    Declaration

    Swift

    public struct EmptySession : Session
  • Struct for a Response. A Response represents a response received from a network request.

    • property data: The data received from the network request.
    • property response: The URLResponse received from the network request.
    See more

    Declaration

    Swift

    public struct Response
  • Struct for a Setup. A Setup represents the setup of a module in the application.

    • property workflow: The workflow of the application.
    • property context: The shared context of the application.
    • property logger: The logger used in the application.
    • property httpClient: The HTTP client used in the application.
    • property config: The configuration for the module.
    See more

    Declaration

    Swift

    public struct Setup<ModuleConfig> : Sendable where ModuleConfig : Sendable