ModelProvider
public protocol ModelProvider
Warning
Although this haspublic
access, it is intended for internal & codegen use and should not be used
directly by host applications. The behavior of this may change without warning. Though it is not used by host
application making any change to these public
types should be backward compatible, otherwise it will be a breaking
change.
-
Declaration
Swift
associatedtype Element : Model
-
load()
AsynchronousDeclaration
Swift
func load() async throws -> Element?
-
Declaration
Swift
func getState() -> ModelProviderState<Element>
-
Declaration
Swift
func encode(to encoder: Encoder) throws
-
eraseToAnyModelProvider()
Extension methodDeclaration
Swift
func eraseToAnyModelProvider() -> AnyModelProvider<Element>