// // Copyright Amazon.com Inc. or its affiliates. // All Rights Reserved. // // SPDX-License-Identifier: Apache-2.0 // struct StateResolution { let newState: T let actions: [Action] static func from(_ state: T) -> StateResolution { StateResolution(newState: state) } init( newState: T, actions: [Action] = [] ) { self.newState = newState self.actions = actions } }