Structure
Static
public struct Static<Output>
A struct
defining some external
value to appear inside an endpoint
chain (e.g. returning a single value,
returning an error, etc).
Initializers
init(_:)
public init(_ content: () throws -> Output)
Init.
Parameters
Name | Type | Description |
---|---|---|
content | () throws -> Output |
The content factory. |
init(_:)
public init(_ output: Output)
Init.
Parameters
Name | Type | Description |
---|---|---|
output | Output |
A single output. |
init(error:_:)
public init(error: any Error)
Init.
Parameters
Name | Type | Description |
---|---|---|
error | any |
A single error. |