All Downloads are FREE. Search and download functionalities are using the official Maven repository.

commonMain.com.atproto.label.SelfLabel.kt Maven / Gradle / Ivy

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()}"
    }
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy