// Copyright 2020 ChainSafe Systems
// SPDX-License-Identifier: Apache-2.0, MIT
usecrate::util::unmarshallable::UnmarshallableCBOR;useencoding::{tuple::*, Cbor};#[derive(Default, Serialize_tuple, Deserialize_tuple)]pubstructState{// Value can be updated by chaos actor methods to test illegal state
// mutations when the state is in readonly mode for example.
pubvalue: String,
// Unmarshallable is a sentinel value. If the slice contains no values, the
// State struct will encode as CBOR without issue. If the slice is non-nil,
// CBOR encoding will fail.
pubunmarshallable:Vec<UnmarshallableCBOR>,
}implCbor forState{}