// This file is part of Soil.
// Copyright (C) Soil contributors.
// Copyright (C) Parity Technologies (UK) Ltd.
// SPDX-License-Identifier: GPL-3.0-or-later WITH Classpath-exception-2.0
/// Description of a reputation adjustment for a node.
#[derive(Debug, Clone, Copy, PartialEq, Eq)]pubstructReputationChange{/// Reputation delta.
pubvalue:i32,
/// Reason for reputation change.
pubreason:&'staticstr,
}implReputationChange{/// New reputation change with given delta and reason.
pubconstfnnew(value:i32, reason:&'staticstr)-> ReputationChange{Self{ value, reason }}/// New reputation change that forces minimum possible reputation.
pubconstfnnew_fatal(reason:&'staticstr)-> ReputationChange{Self{ value:i32::MIN, reason }}}