toggle menu
kord
0.16.0-SNAPSHOT
common
switch theme
search in API
kord-common
/
dev.kord.common.serialization
/
DurationInNanosecondsSerializer
Duration
In
Nanoseconds
Serializer
object
DurationInNanosecondsSerializer
:
DurationAsLongSerializer
(
source
)
Serializer that encodes and decodes
Duration
s in
whole nanoseconds
.
Members
Properties
descriptor
Link copied to clipboard
override
val
descriptor
:
SerialDescriptor
unit
Link copied to clipboard
val
unit
:
DurationUnit
Functions
deserialize
Link copied to clipboard
override
fun
deserialize
(
decoder
:
Decoder
)
:
Duration
serialize
Link copied to clipboard
override
fun
serialize
(
encoder
:
Encoder
,
value
:
Duration
)