#include "tensorstore/spec.h"
template <typename... Option>
  
requires IsCompatibleOptionSequence<SpecConvertOptions, Option...>
absl::Status tensorstore::Spec::Set(Option&&... option);
absl::Status tensorstore::Spec::Set(SpecConvertOptions&options);

Applies the specified options in place.

Supported options include:

  • Schema options

  • OpenMode

  • RecheckCachedData

  • RecheckCachedMetadata

  • ContextBindingMode

  • Context

  • kvstore::Spec

If an error occurs, the spec may be in a partially modified state.