ReadResourceResult

Result of resources/read.

@safe
struct ReadResourceResult {
ResourceContents[] contents;
}

Members

Functions

withMeta
ReadResourceResult withMeta(Json m)

Fluent setter for the result-level _meta object.

Variables

cache
Nullable!CacheHint cache;

Draft CacheableResult freshness hint (ttlMs/cacheScope). Round-trips symmetrically: toJson emits it when set and fromJson parses it. The server sets this (draft-gated) so pre-draft wire output is unchanged.

Mixed In Members

From mixin MetaField

meta
Json meta;

optional _meta object