Donner 0.5.1
Embeddable browser-grade SVG2 engine
Loading...
Searching...
No Matches
donner::editor::sandbox::SvgFetchResult Struct Reference

Result payload. bytes is only populated on kOk; all other statuses leave it empty and set diagnostics to a human-readable reason. More...

#include "donner/editor/sandbox/SvgSource.h"

Collaboration diagram for donner::editor::sandbox::SvgFetchResult:
[legend]

Public Attributes

SvgFetchStatus status = SvgFetchStatus::kOk
std::vector< uint8_t > bytes
std::filesystem::path resolvedPath
 Absolute filesystem path the loader resolved to, for diagnostics and provenance tracking (e.g., baking into .rnr headers in S4). Empty when the URI didn't map to a filesystem path.
std::string diagnostics

Detailed Description

Result payload. bytes is only populated on kOk; all other statuses leave it empty and set diagnostics to a human-readable reason.

Member Data Documentation

◆ bytes

std::vector<uint8_t> donner::editor::sandbox::SvgFetchResult::bytes

◆ diagnostics

std::string donner::editor::sandbox::SvgFetchResult::diagnostics

◆ resolvedPath

std::filesystem::path donner::editor::sandbox::SvgFetchResult::resolvedPath

Absolute filesystem path the loader resolved to, for diagnostics and provenance tracking (e.g., baking into .rnr headers in S4). Empty when the URI didn't map to a filesystem path.

◆ status

SvgFetchStatus donner::editor::sandbox::SvgFetchResult::status = SvgFetchStatus::kOk

The documentation for this struct was generated from the following file: