bsky_comments_widget/models

Types

pub type Author {
  Author(
    did: String,
    handle: String,
    display_name: String,
    avatar_url: String,
  )
}

Constructors

  • Author(
      did: String,
      handle: String,
      display_name: String,
      avatar_url: String,
    )
pub type Embed {
  Images(images: List(Image))
  Video(thumb: String)
  External(
    description: String,
    thumb: String,
    title: String,
    uri: String,
  )
  NoEmbed
}

Constructors

  • Images(images: List(Image))
  • Video(thumb: String)
  • External(
      description: String,
      thumb: String,
      title: String,
      uri: String,
    )
  • NoEmbed
pub type Image {
  Image(fullsize: String, alt: String, aspect_ratio: #(Int, Int))
}

Constructors

  • Image(fullsize: String, alt: String, aspect_ratio: #(Int, Int))
pub type Post {
  Post(
    author: Author,
    uri: String,
    text: String,
    embed: Embed,
    replies: List(Post),
    likes: Int,
    reply_count: Int,
    created_at: String,
  )
}

Constructors

  • Post(
      author: Author,
      uri: String,
      text: String,
      embed: Embed,
      replies: List(Post),
      likes: Int,
      reply_count: Int,
      created_at: String,
    )

Values

pub fn thread_response_decoder() -> decode.Decoder(Post)
Search Document