objects/storage

Types

pub type FireballStorage {
  FireballStorage(path: String)
}

Constructors

  • FireballStorage(path: String)
pub type UploadData {
  UploadData(
    name: String,
    bucket: String,
    generation: String,
    metageneration: String,
    content_type: String,
    time_created: String,
    updated: String,
    storage_class: String,
    size: String,
    md5_hash: String,
    content_encoding: String,
    content_disposition: String,
    crc32c: String,
    etag: String,
    download_tokens: String,
  )
}

Constructors

  • UploadData(
      name: String,
      bucket: String,
      generation: String,
      metageneration: String,
      content_type: String,
      time_created: String,
      updated: String,
      storage_class: String,
      size: String,
      md5_hash: String,
      content_encoding: String,
      content_disposition: String,
      crc32c: String,
      etag: String,
      download_tokens: String,
    )

Functions

pub fn json_to_upload_data(
  input input: Dynamic,
) -> Result(UploadData, List(DecodeError))
pub fn upload_data_to_json(
  upload_data upload_data: UploadData,
) -> String
Search Document