Structures
The following structures are available globally.
-
Provides a
See moreBasicAuthenticator
struct that defines how users are authenticated.Declaration
Swift
public struct CorvusModelAuthenticator<User: CorvusModelAuthenticatable>: BasicAuthenticator
-
Provides a
See moreBearerAuthenticator
struct 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 moreGroup
that protects itscontent
with basic authentication for a genericCorvusModelUser
.Declaration
Swift
public struct BasicAuthGroup<T> : Endpoint where T : CorvusModelAuthenticatable
-
A special type of
See moreGroup
that protects itscontent
with 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 moreEndpoint
under a HTTP route defined bypathComponents
. This path is successively within the tree hierarchy, meaning aGroup's
route path consists of itsPathComponents
and those of theGroup's
above 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