commonMain.com.atproto.label.SelfLabel.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of bluesky-jvm Show documentation
Show all versions of bluesky-jvm Show documentation
Bluesky Social API bindings for Kotlin.
The newest version!
@file:Suppress("DEPRECATION")
package com.atproto.label
import kotlin.String
import kotlin.Suppress
import kotlinx.serialization.Serializable
/**
* Metadata tag on an atproto record, published by the author within the record. Note that schemas
* should use #selfLabels, not #selfLabel.
*
* @param val The short string name of the value or type of this label.
*/
@Serializable
public data class SelfLabel(
/**
* The short string name of the value or type of this label.
*/
public val `val`: String,
) {
init {
require(`val`.count() <= 128) {
"val.count() must be <= 128, but was ${`val`.count()}"
}
}
}