mtx::common::FileInfo struct

Metadata about a file.

Public variables

uint64_t size
The size of the file in bytes.
ThumbnailInfo thumbnail_info
Metadata about the image referred to in thumbnail_url.
std::string thumbnail_url
The URL to the thumbnail of the file.
std::string mimetype
The mimetype of the file e.g application/pdf.
std::optional<crypto::EncryptedFile> thumbnail_file
Encryption members. If present, they replace thumbnail_url.

Friends

void from_json(const nlohmann::json& obj, FileInfo& info)
Deserialization method needed by nlohmann::json.
void to_json(nlohmann::json& obj, const FileInfo& info)
Serialization method needed by nlohmann::json.