Structures
The following structures are available globally.
-
Provides a
See moreBasicAuthenticatorstruct that defines how users are authenticated.Declaration
Swift
public struct CorvusModelAuthenticator<User: CorvusModelAuthenticatable>: BasicAuthenticator -
Provides a
See moreBearerAuthenticatorstruct that defines how tokens are authenticated.Declaration
Swift
public struct CorvusModelTokenAuthenticator<T: CorvusModelTokenAuthenticatable>: BearerAuthenticator -
A struct to provide a database migration.
See moreDeclaration
Swift
public struct CreateCorvusToken : Migration -
Provides a migration structure for databases with schemas.
See moreDeclaration
Swift
public struct CreateCorvusUser : Migration -
A special type of
See moreGroupthat protects itscontentwith basic authentication for a genericCorvusModelUser.Declaration
Swift
public struct BasicAuthGroup<T> : Endpoint where T : CorvusModelAuthenticatable -
A special type of
See moreGroupthat protects itscontentwith bearer token authentication for a genericCorvusModelTokenAuthenticatable.Declaration
Swift
public struct BearerAuthGroup<T> : Endpoint where T : CorvusModelTokenAuthenticatable -
A component capable of grouping multiple components conforming to
See moreEndpointunder a HTTP route defined bypathComponents. This path is successively within the tree hierarchy, meaning aGroup'sroute path consists of itsPathComponentsand those of theGroup'sabove it in the hierarchy.Declaration
Swift
public struct Group : Endpoint -
An object generating a unique string to represent a route parameter.
See moreDeclaration
Swift
public struct Parameter<T> where T : CorvusModel -
Describes the target of a read operation, either all objects, only existing objects, or only trashed (soft-deleted) objects.
See moreDeclaration
Swift
public struct ReadTarget<T> where T : CorvusModel
Structures Reference