toggle menu
Simple Robot
3.3.0
jvm
switch theme
search in API
simbot-api
/
love.forte.simbot.resources
/
Resource
/
AsStandardSerializer
As
Standard
Serializer
@
ExperimentalSimbotApi
object
AsStandardSerializer
:
KSerializer
<
Resource
>
(
source
)
尝试将
Resource
视作
StandardResource
的序列化器。 如果实际类型不是
StandardResource
, 则会引发异常。
Members
Properties
descriptor
Link copied to clipboard
open
override
val
descriptor
:
SerialDescriptor
Functions
deserialize
Link copied to clipboard
open
override
fun
deserialize
(
decoder
:
Decoder
)
:
Resource
serialize
Link copied to clipboard
open
override
fun
serialize
(
encoder
:
Encoder
,
value
:
Resource
)