Companion

object Companion

Functions

conflict
Link copied to clipboard
Returns a Failure for the conflict status code.
fun <T : Any> conflict(error: String): Result.Failure<T>
created
Link copied to clipboard
Returns a Success for the created status code.
fun <T : Any> created(data: T): Result.Success<T>
equals
Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
forbidden
Link copied to clipboard
Returns a Failure for the forbidden status code.
fun <T : Any> forbidden(error: String): Result.Failure<T>
hashCode
Link copied to clipboard
open override fun hashCode(): Int
notFound
Link copied to clipboard
Returns a Failure for the not found status code.
fun <T : Any> notFound(error: String): Result.Failure<T>
ok
Link copied to clipboard
Returns a Success for the ok status code.
fun <T : Any> ok(data: T): Result.Success<T>
toString
Link copied to clipboard
open override fun toString(): String
unauthorized
Link copied to clipboard
Returns a Failure for the unauthorized status code.
fun <T : Any> unauthorized(error: String): Result.Failure<T>
unprocessableEntity
Link copied to clipboard
Returns a Failure for the unprocessable entity status code.
fun <T : Any> unprocessableEntity(error: String): Result.Failure<T>