atproto/blob

The atproto blob reference, as embedded in records and returned by com.atproto.repo.uploadBlob: {"$type":"blob","ref":{"$link":<cid>},"mimeType":...,"size":...}.

Types

pub type Blob {
  Blob(cid: String, mime_type: String, size: Int)
}

Constructors

  • Blob(cid: String, mime_type: String, size: Int)

Values

pub fn blob_decoder() -> decode.Decoder(Blob)
pub fn encode_blob(value: Blob) -> json.Json
pub fn public_url(pds: String, did: String, blob: Blob) -> String

The public URL a PDS serves this blob’s bytes from.

Search Document