Structures

The following structures are available globally.

  • A struct that represents a custom HTTP cookie.

    CustomHTTPCookie provides a Codable and Sendable representation of HTTP cookies, allowing cookies to be easily serialized, deserialized, and safely passed across concurrency boundaries. This type mirrors the properties of HTTPCookie but with full encoding and decoding support.

    Use this type when you need to persist cookies or transfer them in a structured format, such as saving to disk or sending across network boundaries.

    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 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