Module inline

Source
Expand description

Contains traits and types to support inlining connection details.

Because we ultimately want to support the ability to alter the details of a connection, we cannot simply inline their state into structs–we instead need a means of understanding which connection we’re referring to and inline its current state when sending the struct off to be used to handle a connection to an external service.

Structs§

InlinedConnection
Expresses that the struct contains an inlined definition of a connection.
ReferencedConnection
Expresses that the struct contains references to connections. Use a combination of IntoInlineConnection and ConnectionResolver to take this into InlinedConnection.

Traits§

ConnectionAccess
Expresses how a struct/enum can access details about any connections it uses. Meant to be used as a type constraint on structs that use connections.
ConnectionResolver
Permits any struct to take a CatalogItemId into an inlined connection.
IntoInlineConnection
Takes ~T<ReferencedConnection> to ~T<InlinedConnection> by recursively inlining connections and resolving any referenced connections into their inlined version.