1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
// Copyright (c) The Diem Core Contributors // SPDX-License-Identifier: Apache-2.0 use move_core_types::move_resource::MoveResource; use serde::{Deserialize, Serialize}; #[derive(Debug, Serialize, Deserialize)] pub struct FreezingBit { is_frozen: bool, } impl FreezingBit { pub fn is_frozen(&self) -> bool { self.is_frozen } } impl MoveResource for FreezingBit { const MODULE_NAME: &'static str = "AccountFreezing"; const STRUCT_NAME: &'static str = "FreezingBit"; }