pub struct SettlementControlState {
pub schema: String,
pub updated_at: u64,
pub controls: SettlementEmergencyControls,
pub history: Vec<SettlementControlChangeRecord>,
}Fields§
§schema: String§updated_at: u64§controls: SettlementEmergencyControls§history: Vec<SettlementControlChangeRecord>Implementations§
Source§impl SettlementControlState
impl SettlementControlState
pub fn new(updated_at: u64, controls: SettlementEmergencyControls) -> Self
pub fn apply_change( &mut self, mode: SettlementEmergencyMode, changed_at: u64, actor: impl Into<String>, reason: Option<String>, source: impl Into<String>, )
Trait Implementations§
Source§impl Clone for SettlementControlState
impl Clone for SettlementControlState
Source§fn clone(&self) -> SettlementControlState
fn clone(&self) -> SettlementControlState
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SettlementControlState
impl Debug for SettlementControlState
Source§impl<'de> Deserialize<'de> for SettlementControlState
impl<'de> Deserialize<'de> for SettlementControlState
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for SettlementControlState
Source§impl PartialEq for SettlementControlState
impl PartialEq for SettlementControlState
Source§impl Serialize for SettlementControlState
impl Serialize for SettlementControlState
impl StructuralPartialEq for SettlementControlState
Auto Trait Implementations§
impl Freeze for SettlementControlState
impl RefUnwindSafe for SettlementControlState
impl Send for SettlementControlState
impl Sync for SettlementControlState
impl Unpin for SettlementControlState
impl UnsafeUnpin for SettlementControlState
impl UnwindSafe for SettlementControlState
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more