zynagent-first application framework

Back to the API reference

zyn.Blob#

/// Immutable metadata for one stored blob.
pub const Blob = struct {
    id: []const u8,
    filename: []const u8,
    media_type: []const u8,
    byte_size: u64,
    sha256: [Sha256.digest_length]u8,
    metadata: Metadata,
    /// Unix timestamp in microseconds.
    created_at: i64,

    /// Framework-derived media metadata.
    pub const Metadata = struct {
        image: ?Image = null,

        /// Dimensions derived from image contents.
        pub const Image = struct {
            width: u32,
            height: u32,
        };
    };
};