Mark ValueDescription with SerialInfo

This commit is contained in:
Him188 2020-10-25 13:29:06 +08:00
parent 717c908ccf
commit 5c16e685b3

View File

@ -9,6 +9,8 @@
package net.mamoe.mirai.console.data package net.mamoe.mirai.console.data
import kotlinx.serialization.SerialInfo
/** /**
* 序列化之后的注释. * 序列化之后的注释.
* *
@ -30,6 +32,7 @@ package net.mamoe.mirai.console.data
* a: b * a: b
* ``` * ```
*/ */
@SerialInfo
@Target(AnnotationTarget.PROPERTY, AnnotationTarget.CLASS) @Target(AnnotationTarget.PROPERTY, AnnotationTarget.CLASS)
@Retention(AnnotationRetention.RUNTIME) @Retention(AnnotationRetention.RUNTIME)
public annotation class ValueDescription(val value: String) public annotation class ValueDescription(val value: String)