SeamSuccess

@Serializable
@SerialName(value = "success")
data class SeamSuccess<T>(val data: T) : SeamResult<T>

Constructors

Link copied to clipboard
constructor(data: T)

Properties

Link copied to clipboard
val data: T
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
inline fun <R> andThen(transform: (T) -> SeamResult<R>): SeamResult<R>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun getOrNull(): T?
Link copied to clipboard
fun getOrThrow(): T
Link copied to clipboard
inline fun <R> map(transform: (T) -> R): SeamResult<R>
Link copied to clipboard
fun orElse(other: T): T