Multiplatform Ktor schema declaration • opensavvy.spine.api • Parameters • Parameter
Parameter¶
A declared query parameter in an API schema.
See Parameters.
Constructors¶
Parameter¶
Properties¶
defaultValue¶
val defaultValue: T?
The value that is substituted in if the URL does not contain this parameter.
name¶
Name of the parameter as it appears in the URL.
Functions¶
getValue¶
inline operator fun <T> Parameters.Parameter<T>.getValue(thisRef: Parameters, property: KProperty<*>): T
Internal method used by the parameter declaration syntax.
setValue¶
inline operator fun <T> Parameters.Parameter<T>.setValue(thisRef: Parameters, property: KProperty<*>, value: T)
Internal method used by the parameter declaration syntax.