blob: 9d096e64d808094580cf5d175ca79d5afb01c0d1 [file] [log] [blame]
// Copyright 2018 The Fuchsia Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
library fuchsia.modular.storymodel;
using fuchsia.modular;
// The `StoryModelMutation` union represents the set of all possible low-level mutations to data
// for a single story. A vector of mutations represent mutations that are to be applied to the
// model in a single transaction.
//
// This structured is used internally in `sessionmgr` and is not exposed to any clients outside
// that process. Clients will typically construct these indirectly using convenience methods on the
// `StoryMutator` class.
union StoryModelMutation {
// Sets the value of |StoryModel.visibility_state|.
fuchsia.modular.StoryVisibilityState set_visibility_state;
// Sets the value of |StoryModel.runtime_state|.
fuchsia.modular.StoryState set_runtime_state;
};