created

Returns a Success for the created status code.

Author

Jan Müller

Parameters

data
The data of the Result.
T
The type of the Result.
fun <T : Any> created(data: T): Result.Success<T>