suggested-write-options
The methods in this resource return values that correspond to the fields in a
write-options. This type is used when a write-options value would
be returned, so that it can use max-len parameters when returning
dynamically-sized data, and so that it excludes the extra field, since borrowed
handles cannot be returned from functions.
resource suggested-write-options;F get-max-age-ns
get-max-age-ns: func() -> duration-ns;Returns the suggested value for the write-options.max-age-ns field.
F get-vary-rule
get-vary-rule: func(max-len: u64) -> result<string, error>;Returns the suggested value for the write-options.vary-rule field.
F get-initial-age-ns
get-initial-age-ns: func() -> duration-ns;Returns the suggested value for the write-options.initial-age-ns field.
F get-stale-while-revalidate-ns
get-stale-while-revalidate-ns: func() -> duration-ns;Returns the suggested value for the write-options.stale-while-revalidate-ns field.
F get-stale-if-error-ns
get-stale-if-error-ns: func() -> duration-ns;Returns the suggested value for the write-options.stale-if-error-ns field.
F get-surrogate-keys
get-surrogate-keys: func(max-len: u64) -> result<string, error>;Returns the suggested value for the write-options.surrogate-keys field.
F get-length
get-length: func() -> option<object-length>;Returns the suggested value for the write-options.length field.
F get-sensitive-data
get-sensitive-data: func() -> bool;Returns the suggested value for the write-options.sensitive-data field.