kitazith/component

Types

pub type Component {
  Component(raw: json.Json)
  TextDisplayComponent(text_display.TextDisplay)
  SectionComponent(section.Section)
  MediaGalleryComponent(media_gallery.MediaGallery)
  FileComponent(file.File)
  SeparatorComponent(separator.Separator)
  ContainerComponent(container.Container)
}

Constructors

Values

pub fn container(container: container.Container) -> Component
pub fn file(file: file.File) -> Component
pub fn media_gallery(
  media_gallery: media_gallery.MediaGallery,
) -> Component
pub fn raw(data: json.Json) -> Component
pub fn section(section: section.Section) -> Component
pub fn separator(separator: separator.Separator) -> Component
pub fn text_display(
  text_display: text_display.TextDisplay,
) -> Component
pub fn to_json(component: Component) -> json.Json
Search Document